Skip to content

Commit

Permalink
Use addScopeToCssLegacy instead of addScopeToCss to fix dict css on k…
Browse files Browse the repository at this point in the history
…iwi breaking
  • Loading branch information
Kuuuube committed Feb 8, 2025
1 parent d9fd8b5 commit a2f0ac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/js/display/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {ExtensionError} from '../core/extension-error.js';
import {log} from '../core/log.js';
import {safePerformance} from '../core/safe-performance.js';
import {toError} from '../core/to-error.js';
import {addScopeToCss, clone, deepEqual, promiseTimeout} from '../core/utilities.js';
import {addScopeToCssLegacy, clone, deepEqual, promiseTimeout} from '../core/utilities.js';
import {setProfile} from '../data/profiles-util.js';
import {PopupMenu} from '../dom/popup-menu.js';
import {querySelectorNotNull} from '../dom/query-selector.js';
Expand Down Expand Up @@ -1255,7 +1255,7 @@ export class Display extends EventDispatcher {
for (const {name, enabled, styles = ''} of dictionaries) {
if (enabled) {
const escapedTitle = name.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
customCss += '\n' + addScopeToCss(styles, `[data-dictionary="${escapedTitle}"]`);
customCss += '\n' + addScopeToCssLegacy(styles, `[data-dictionary="${escapedTitle}"]`);
}
}
this.setCustomCss(customCss);
Expand Down

0 comments on commit a2f0ac8

Please sign in to comment.