From 7a1a3d60d9fa0859b2d36169e18e4bfda3565cec Mon Sep 17 00:00:00 2001 From: chip Date: Sun, 31 May 2020 14:47:58 -0700 Subject: [PATCH] move tauri.js injection to . Fixes #625 (#629) --- cli/tauri.js/src/runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/tauri.js/src/runner.ts b/cli/tauri.js/src/runner.ts index 9f23ee9dc..07d60ac74 100644 --- a/cli/tauri.js/src/runner.ts +++ b/cli/tauri.js/src/runner.ts @@ -298,7 +298,7 @@ class Runner { const tauriScript = document.createElement('script') tauriScript.text = readFileSync(path.join(tauriDir, 'tauri.js')).toString() - document.body.insertBefore(tauriScript, document.body.firstChild) + document.head.insertBefore(tauriScript, document.head.firstChild) const csp = cfg.tauri.security.csp if (csp) {