Skip to content

Commit 9dcce6f

Browse files
authored
Fix timer not working for floating editor windows (#242)
1 parent ce72a33 commit 9dcce6f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/extension.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,15 @@ const setEditorBackground = () => {
452452
453453
shuffle(iEditorBackgrounds);
454454
455+
let buf = '';
455456
for(let i = 0; i < len; i++){
456-
bk_editor_image.appendChild(document.createTextNode(\`
457+
buf += \`
457458
.part.editor :not(.split-view-container) .split-view-container > .split-view-view:nth-child(\${len}n+\${i+1}) > .editor-group-container::after {
458459
background-image: url("\${editorBackgrounds[iEditorBackgrounds[i]]}");
459460
}
460-
\`));
461+
\`;
461462
};
463+
bk_editor_image.appendChild(document.createTextNode(buf));
462464
};
463465
};
464466
`

0 commit comments

Comments
 (0)