From 9dcce6fb294415abfe0e74a4c002dc97eb6c88fb Mon Sep 17 00:00:00 2001 From: Katsute <58778985+Katsute@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:41:36 -0500 Subject: [PATCH] Fix timer not working for floating editor windows (#242) --- src/extension.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 47f9c6c5..f0d4b260 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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)); }; }; `