Skip to content

Commit

Permalink
fix: bug with script injection
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianpimminger committed Feb 23, 2021
1 parent 4be3710 commit ae3cc5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/CookieFox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
newScript.text = script.innerHTML;
let k = -1, attrs = script.attributes, attr;
while ( ++k < attrs.length ) {
script.setAttribute( (attr = attrs[k]).name, attr.value );
newScript.setAttribute( (attr = attrs[k]).name, attr.value );
}
script.parentNode.replaceChild(newScript, script);
});
Expand Down

0 comments on commit ae3cc5c

Please sign in to comment.