Fix: failed selecting global.css

This commit is contained in:
eight04 2021-12-10 20:16:40 +08:00
parent 3b4c925acf
commit eb3077d906

View File

@ -485,7 +485,7 @@ async function waitForSheet({
});
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++) {
if (/#\\1\s?transition-suppressor/.test(rule.selectorText)) {
sheet.deleteRule(i);