Skip to content

out001a/MarkTwain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Try it now in CWS

Sandbox

This sample creates a sandboxed iframe (sandbox.html) to which the main page (mainpage.html) passes a counter variable. The sandboxed page uses the Handlebars template library to evaluate and compose a message using the counter variable which is then passed back to the main page for rendering.

The default packaged app Content Security Policy (CSP) value disallows the use of eval() or new Function() (or variants like Function.apply()) so using a sandbox is necessary for this process. To enable sandboxing in your app you add the sandbox property to your app's manifest file.

See more info on using eval safely in packaged apps.

APIs

Screenshot

screenshot

About

本项目仅为学习目的,版权归马克飞象所有 https://maxiang.io/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published