Fix: failed selecting global.css
This commit is contained in:
parent
3b4c925acf
commit
eb3077d906
|
@ -485,7 +485,7 @@ async function waitForSheet({
|
||||||
});
|
});
|
||||||
|
|
||||||
window.on('load', () => {
|
window.on('load', () => {
|
||||||
const {sheet} = $('link[href^="global.css"]');
|
const {sheet} = $('link[href$="global.css"]');
|
||||||
for (let i = 0, rule; (rule = sheet.cssRules[i]); i++) {
|
for (let i = 0, rule; (rule = sheet.cssRules[i]); i++) {
|
||||||
if (/#\\1\s?transition-suppressor/.test(rule.selectorText)) {
|
if (/#\\1\s?transition-suppressor/.test(rule.selectorText)) {
|
||||||
sheet.deleteRule(i);
|
sheet.deleteRule(i);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user