diff --git a/fbinstant/index.html b/fbinstant/index.html index 3b1aad4..7b111ec 100644 --- a/fbinstant/index.html +++ b/fbinstant/index.html @@ -6,7 +6,7 @@ - {{DEFOLD_APP_TITLE}} + {{project.title}} {{project.version}} + {{{DEFOLD_DEV_HEAD}}}
- +
@@ -85,7 +86,8 @@ }, engine_arguments: ["--verify-graphics-calls=false"], splash_image: "{{DEFOLD_SPLASH_IMAGE}}", - custom_heap_size: {{DEFOLD_HEAP_SIZE}} + custom_heap_size: {{DEFOLD_HEAP_SIZE}}, + disable_context_menu: true } Module['onRuntimeInitialized'] = function() { @@ -97,7 +99,7 @@ // dmengine*.wasm is hardcoded in the built JS loader for WASM, // we need to replace it here with the correct project name. if (path == "dmengine.wasm" || path == "dmengine_release.wasm" || path == "dmengine_headless.wasm") { - path = "{{DEFOLD_BINARY_PREFIX}}.wasm"; + path = "{{exe-name}}.wasm"; } return scriptDirectory + path; }; @@ -106,9 +108,9 @@ var engineJS = document.createElement('script'); engineJS.type = 'text/javascript'; if (Module['isWASMSupported']) { - engineJS.src = '{{DEFOLD_BINARY_PREFIX}}_wasm.js'; + engineJS.src = '{{exe-name}}_wasm.js'; } else { - engineJS.src = '{{DEFOLD_BINARY_PREFIX}}_asmjs.js'; + engineJS.src = '{{exe-name}}_asmjs.js'; } document.head.appendChild(engineJS); } @@ -122,7 +124,7 @@ var dpi=window.devicePixelRatio || 1 var width=window.innerWidth; var height=window.innerHeight; - var targetRatio = {{DEFOLD_DISPLAY_WIDTH}}/{{DEFOLD_DISPLAY_HEIGHT}}; + var targetRatio = {{display.width}}/{{display.height}}; var actualRatio = width/height; if (actualRatio > targetRatio) { width = height * targetRatio;