Skip to content

Commit 975d66d

Browse files
committed
fix(wrapper): ignore chunks in strings
1 parent 18aea02 commit 975d66d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsHelper/spicetifyWrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ window.Spicetify = {
472472
const text = await res.text();
473473
const src = script.src.split("/").pop();
474474
console.log(`[spicetifyWrapper] Waiting for ${src}`);
475-
for (const pack of text.match(/(?:,|{)(\d+): ?\(.,.,./g).map((str) => str.slice(0, -7).slice(1))) {
476-
// console.debug(`[spicetifyWrapper] Waiting for ${pack} of ${src}`);
475+
for (const pack of text.match(/(?<!["'`])(?:,|{)(\d+): ?\(.,.,./g).map((str) => str.slice(0, -7).slice(1))) {
476+
//console.debug(`[spicetifyWrapper] Waiting for ${pack} of ${src}`);
477477
while (!require.m || !Object.keys(require.m).includes(pack)) {
478478
await new Promise((r) => setTimeout(r, 100));
479479
}

0 commit comments

Comments
 (0)