From 428e74b2d8a24d212299ba2d7c0d8b0bb033d745 Mon Sep 17 00:00:00 2001 From: Louis Date: Sat, 26 Sep 2026 00:07:24 +0200 Subject: [PATCH] Android: load @capacitor/core in the web view (registerPlugin was missing, so the app stopped on the loading screen) and show script errors on the start screen Co-Authored-By: Claude Opus 5.5 --- mobile/build.js | 1 + mobile/web/index.html | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/mobile/build.js b/mobile/build.js index e52e68e..236ac63 100644 --- a/mobile/build.js +++ b/mobile/build.js @@ -53,6 +53,7 @@ function buildWeb() { copy(path.join(nm, 'xterm', 'lib', 'xterm.js'), path.join(WWW, 'lib', 'xterm.js')); copy(path.join(nm, 'xterm', 'css', 'xterm.css'), path.join(WWW, 'lib', 'xterm.css')); copy(path.join(nm, 'addon-fit', 'lib', 'addon-fit.js'), path.join(WWW, 'lib', 'addon-fit.js')); + copy(path.join(__dirname, 'node_modules', '@capacitor', 'core', 'dist', 'capacitor.js'), path.join(WWW, 'lib', 'capacitor.js')); copy(path.join(ROOT, 'src', 'i18n.js'), path.join(WWW, 'lib', 'i18n.js')); copy(path.join(ROOT, 'src', 'renderer', 'themes.js'), path.join(WWW, 'lib', 'themes.js')); copy(path.join(ROOT, 'src', 'renderer', 'logo.png'), path.join(WWW, 'logo.png')); diff --git a/mobile/web/index.html b/mobile/web/index.html index debf687..acb8758 100644 --- a/mobile/web/index.html +++ b/mobile/web/index.html @@ -38,6 +38,14 @@
+ +