Skip to content

Commit

Permalink
fix #1920: usercss installer for local file
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Feb 9, 2025
1 parent a42e591 commit 41b99c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/install-hook-usercss.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ if (typeof window.oldCode !== 'string') {
}

// passing the result to tabs.executeScript
window.oldCode; // eslint-disable-line no-unused-expressions
oldCode; /* global oldCode*/// eslint-disable-line no-unused-expressions
2 changes: 1 addition & 1 deletion src/install-usercss/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ setTimeout(() => !cm && showSpinner($id('header')), 200);
.then(code => code || getData())
.catch(getData);
} else if (!__.MV3) {
getData = PortDownloader();
getData = PortDownloader(initialUrl, tabId);
firstGet = getData({force: true});
}

Expand Down

0 comments on commit 41b99c1

Please sign in to comment.