Skip to content

Commit

Permalink
Changed insertCSS origin to user so it has higher priority. (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
OhMyGuus authored Oct 20, 2022
1 parent d30b61e commit e3eed9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data/context-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ function insertCSS(injection, callback) {
target: { tabId: tabId, frameIds: [frameId || 0] },
css: css,
files: file ? [file] : undefined,
origin: "USER",
},
callback
);
Expand All @@ -566,6 +567,7 @@ function insertCSS(injection, callback) {
code: css,
frameId: frameId || 0,
runAt: xmlTabs[tabId] ? "document_idle" : "document_start",
cssOrigin: "user",
},
callback
);
Expand Down

0 comments on commit e3eed9e

Please sign in to comment.