Skip to content

Commit f144c81

Browse files
committed
Fixed #2252 user scripts not load for frames
1 parent 3395ce6 commit f144c81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/background/start.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,7 @@ function start(browser) {
12441244
const code = `import('./api.js').then((module) => {module.default("${chrome.runtime.getURL("/")}", (api, settings) => {${snippets}\n})});`;
12451245
const registerSettingSnippets = () => {
12461246
chrome.userScripts.register([{
1247+
allFrames: true,
12471248
id: userScriptId,
12481249
matches: ['*://*/*', 'file:///*'],
12491250
js: [{code}]

0 commit comments

Comments
 (0)