Pārlūkot izejas kodu

feat(isolation): script now removes itself to hide key from DOM (#9328)

Lucas Fernandes Nogueira 1 gadu atpakaļ
vecāks
revīzija
a804a70a7a

+ 5 - 0
.changes/isolation-script-remove-itself.md

@@ -0,0 +1,5 @@
+---
+"tauri-utils": patch:enhance
+---
+
+The isolation iframe script now removes itself after execution.

+ 2 - 0
core/tauri-utils/src/pattern/isolation.js

@@ -135,4 +135,6 @@
   }
 
   setTimeout(waitUntilReady, readyIntervalMs)
+
+  document.currentScript.remove()
 })()