mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-12-22 13:19:24 +01:00
make extra sure to avoid variable reuse
This commit is contained in:
parent
6cf6eb04f2
commit
d019b1d381
1 changed files with 3 additions and 3 deletions
6
main.ts
6
main.ts
|
@ -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);
|
||||
})();
|
||||
`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue