Skip to content

Commit eff2887

Browse files
committed
fix: try catch block for script insert
1 parent b19ec13 commit eff2887

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/setValue.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,11 @@ function setScript(script, value) {
191191
else
192192
newScript.innerHTML = value;
193193
}
194-
script.replaceWith(newScript);
194+
try {
195+
script.replaceWith(newScript);
196+
} catch (error) {
197+
console.log(error)
198+
}
195199
}
196200

197201
function __decryptPassword(str) {

0 commit comments

Comments
 (0)