Files
veilid/veilid-flutter/example/web/index.html
John Smith 221c09b555 checkpoint
2022-12-16 20:07:28 -05:00

2.2 KiB

<html> <head> <script> // The value below is injected by flutter build, do not touch. var serviceWorkerVersion = null; </script> <script src="flutter.js" defer></script> </head> <script type="module"> import * as veilid_wasm_module from './wasm/veilid_wasm.js'; async function run() { // save the wasm exports window.veilid_wasm = veilid_wasm_module; // init the js module await veilid_wasm_module.default(); // init the wasm library await veilid_wasm_module.initialize_veilid_wasm(); } run(); </script> <script> window.addEventListener('load', function (ev) { // Download main.dart.js _flutter.loader.loadEntrypoint({ serviceWorker: { serviceWorkerVersion: serviceWorkerVersion, } }).then(function (engineInitializer) { return engineInitializer.initializeEngine(); }).then(function (appRunner) { return appRunner.runApp(); }); }); </script> </html>