Skip to content

Latest commit

 

History

History

web-editor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

The web-editor subfolder embeds Fidget into a web application.

Building this demo requires wasm-pack to be installed on the host system.

Run the editor demo in the web subfolder with

npm install
npm run serve

Or bundle files for distribution with

npm run dist

The web application must be served with cross-origin isolation, because it uses shared memory for multithreading.

The demo server is configured to add those headers in serve.json.

To serve the application with Apache, add the following to an .htaccess file:

Header add Cross-Origin-Embedder-Policy: "require-corp"
Header add Cross-Origin-Opener-Policy: "same-origin"