diff --git a/.changes/fix-android-remove-current-script.md b/.changes/fix-android-remove-current-script.md new file mode 100644 index 000000000000..ddf70c521a90 --- /dev/null +++ b/.changes/fix-android-remove-current-script.md @@ -0,0 +1,5 @@ +--- +"tauri-utils": patch:bug +--- + +Properly remove isolation script on Android. diff --git a/core/tauri-utils/src/pattern/isolation.js b/core/tauri-utils/src/pattern/isolation.js index b0b1370b52ed..9a44611c6305 100644 --- a/core/tauri-utils/src/pattern/isolation.js +++ b/core/tauri-utils/src/pattern/isolation.js @@ -149,6 +149,6 @@ } setTimeout(waitUntilReady, readyIntervalMs) - - document.currentScript.remove() })() + +document.currentScript?.remove()