Skip to content

Commit

Permalink
Fix timer not working for floating editor windows (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute authored Nov 9, 2023
1 parent ce72a33 commit 9dcce6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,13 +452,15 @@ const setEditorBackground = () => {
shuffle(iEditorBackgrounds);
let buf = '';
for(let i = 0; i < len; i++){
bk_editor_image.appendChild(document.createTextNode(\`
buf += \`
.part.editor :not(.split-view-container) .split-view-container > .split-view-view:nth-child(\${len}n+\${i+1}) > .editor-group-container::after {
background-image: url("\${editorBackgrounds[iEditorBackgrounds[i]]}");
}
\`));
\`;
};
bk_editor_image.appendChild(document.createTextNode(buf));
};
};
`
Expand Down

0 comments on commit 9dcce6f

Please sign in to comment.