make extra sure to avoid variable reuse

This commit is contained in:
Ell 2022-03-25 15:26:22 +01:00
parent 6cf6eb04f2
commit d019b1d381

View file

@ -101,9 +101,9 @@ class CustomFrameView extends ItemView {
if (frame.src.contains(new URL(other.url).host)) {
other.executeJavaScript(`
(() => {
let style = document.createElement("style");
style.textContent = \`${this.frame.customCss}\`;
document.head.appendChild(style);
let customFramesStyle = document.createElement("style");
customFramesStyle.textContent = \`${this.frame.customCss}\`;
document.head.appendChild(customFramesStyle);
})();
`);
}