Skip to content

Commit

Permalink
Use addScopeToCssLegacy to fix dict css on Kiwi due to out of date Ch…
Browse files Browse the repository at this point in the history
…romium base (#1809)

Use addScopeToCssLegacy instead of addScopeToCss to fix dict css on kiwi breaking
  • Loading branch information
Kuuuube authored Feb 9, 2025
1 parent 91afaa1 commit f3fdb69
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 f3fdb69

Please sign in to comment.