Skip to content

Commit

Permalink
fix: try catch block for script insert
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Apr 27, 2024
1 parent b19ec13 commit eff2887
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/setValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ function setScript(script, value) {
else
newScript.innerHTML = value;
}
script.replaceWith(newScript);
try {
script.replaceWith(newScript);
} catch (error) {
console.log(error)
}
}

function __decryptPassword(str) {
Expand Down

0 comments on commit eff2887

Please sign in to comment.