Skip to content

Commit

Permalink
fix: page-provider inject order (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 authored Feb 12, 2025
1 parent c5cd4c1 commit 49e66cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _raw/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const registerInPageContentScript = async () => {
js: ['pageProvider.js'],
runAt: 'document_start',
world: 'MAIN',
allFrames: true,
},
]);
} catch (err) {
Expand All @@ -82,6 +83,7 @@ const registerInPageContentScript = async () => {
}
};

registerInPageContentScript();
clearAlarms();
createOffscreen();
keepAlive();
Expand Down
2 changes: 1 addition & 1 deletion src/content-script/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ const onMessageSetUpExtensionStreams = (msg) => {
};
browser.runtime.onMessage.addListener(onMessageSetUpExtensionStreams);

injectProviderScript(false);
// injectProviderScript(false);

0 comments on commit 49e66cb

Please sign in to comment.