Skip to content

Commit a804a70

Browse files
authored
feat(isolation): script now removes itself to hide key from DOM (#9328)
1 parent 7c334cb commit a804a70

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-utils": patch:enhance
3+
---
4+
5+
The isolation iframe script now removes itself after execution.

core/tauri-utils/src/pattern/isolation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,6 @@
135135
}
136136

137137
setTimeout(waitUntilReady, readyIntervalMs)
138+
139+
document.currentScript.remove()
138140
})()

0 commit comments

Comments
 (0)