Skip to content

Commit 41b99c1

Browse files
committed
fix #1920: usercss installer for local file
1 parent a42e591 commit 41b99c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content/install-hook-usercss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ if (typeof window.oldCode !== 'string') {
2323
}
2424

2525
// passing the result to tabs.executeScript
26-
window.oldCode; // eslint-disable-line no-unused-expressions
26+
oldCode; /* global oldCode*/// eslint-disable-line no-unused-expressions

src/install-usercss/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ setTimeout(() => !cm && showSpinner($id('header')), 200);
7777
.then(code => code || getData())
7878
.catch(getData);
7979
} else if (!__.MV3) {
80-
getData = PortDownloader();
80+
getData = PortDownloader(initialUrl, tabId);
8181
firstGet = getData({force: true});
8282
}
8383

0 commit comments

Comments
 (0)