mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-11-22 09:43:30 +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)) {
|
if (frame.src.contains(new URL(other.url).host)) {
|
||||||
other.executeJavaScript(`
|
other.executeJavaScript(`
|
||||||
(() => {
|
(() => {
|
||||||
let style = document.createElement("style");
|
let customFramesStyle = document.createElement("style");
|
||||||
style.textContent = \`${this.frame.customCss}\`;
|
customFramesStyle.textContent = \`${this.frame.customCss}\`;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(customFramesStyle);
|
||||||
})();
|
})();
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue