Skip to content

Commit 90376c6

Browse files
authored
Fix some Firefox issues; switch to MV3 in Firefox too (refined-github#7906)
1 parent 21be0ce commit 90376c6

File tree

5 files changed

+4
-54
lines changed

5 files changed

+4
-54
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ jobs:
5252
steps:
5353
- uses: actions/checkout@v4
5454
- uses: actions/download-artifact@v4
55-
56-
# Kiwi browser https://github.com/kiwibrowser/src.next/issues/1138
57-
- run: npm install dot-json@1 -g
58-
- run: npm run manifest artifact 3
59-
6055
- run: npx chrome-webstore-upload-cli@3
6156
working-directory: artifact
6257
env:
@@ -73,11 +68,6 @@ jobs:
7368
steps:
7469
- uses: actions/checkout@v4
7570
- uses: actions/download-artifact@v4
76-
77-
# Firefox https://github.com/refined-github/refined-github/issues/7477
78-
- run: npm install dot-json@1
79-
- run: npm run manifest artifact 2
80-
8171
- name: Upload build and source code
8272
run: npx web-ext@8 sign --channel listed
8373
working-directory: artifact

build/manifest.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"build": "run-p build:* --continue-on-error",
77
"build:typescript": "tsc --noEmit",
88
"build:bundle": "rollup -c",
9-
"manifest": "node build/manifest.js",
109
"fix": "run-p \"lint:css -- --fix\" \"lint:js -- --fix\" fix:prettier \"vitest -- --update\" --continue-on-error",
1110
"fix:prettier": "prettier . --write",
1211
"lint": "run-p lint:* --continue-on-error",

source/background.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ handleMessages({
4646
},
4747
});
4848

49-
// `browserAction` needed for Firefox MV2 https://github.com/refined-github/refined-github/issues/7477
50-
(chrome.action ?? chrome.browserAction).onClicked.addListener(async tab => {
49+
chrome.action.onClicked.addListener(async tab => {
5150
if (doesBrowserActionOpenOptions) {
5251
void chrome.runtime.openOptionsPage();
5352
return;

source/welcome.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
$: if (stepValid === 3) {
2121
setTimeout(() => {
22-
location.href = 'https://github.com/refined-github/refined-github/wiki';
22+
location.replace('https://github.com/refined-github/refined-github/wiki');
2323
}, 2000);
2424
}
2525
@@ -52,11 +52,10 @@
5252
}
5353
5454
async function verifyToken() {
55-
try {
56-
await hasValidGitHubComToken(tokenInput);
55+
if (await hasValidGitHubComToken(tokenInput)) {
5756
stepValid = 3;
5857
tokenError = '';
59-
} catch {
58+
} else {
6059
tokenError = 'Invalid token';
6160
}
6261
}

0 commit comments

Comments
 (0)