Skip to content

Commit

Permalink
fix #1926: performance.now() doesn't change in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Feb 19, 2025
1 parent 18bedd9 commit 41c9c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/style-injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function createStyle(style) {
let {id} = style;
if (ass) {
if (!exposeStyleName)
id = randomIds[id] ??= performance.now().toString(36);
id = randomIds[id] ??= Math.random().toString(36).slice(2);
id = MEDIA + id;
el = new CSSStyleSheet({media: id});
setTextAndName(el, style);
Expand Down

0 comments on commit 41c9c6d

Please sign in to comment.