Skip to content

Commit

Permalink
fix preinjection
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Oct 24, 2024
1 parent a73b6a5 commit 2b1407e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/style-via-webrequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const blobUrlPrefix = 'blob:' + chrome.runtime.getURL('/');
const stylesToPass = {};
const state = {};
const INJECTED_FUNC = data => {
if (self.INJECTED !== 1) { // storing data only if apply.js hasn't run yet
if (window['apply.js'] !== 1) { // storing data only if apply.js hasn't run yet
window[Symbol.for('styles')] = data;
}
};
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const getBaseConfig = () => ({
terserOptions: {
mangle: {
keep_fnames: true,
reserved: ['window'],
},
},
}, TERSER_OPTS)),
Expand Down

0 comments on commit 2b1407e

Please sign in to comment.