Skip to content

Commit acd6991

Browse files
committed
Update main.yml
Update consent.js Update consent.html Update background.js
1 parent cdb9c2e commit acd6991

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Package
22

33
on:
44
push:
5-
branches: [main, manifest-v3, testing]
5+
branches: [main, manifest-v3]
66

77
workflow_dispatch:
88

src/html/consent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<div class="logo-wrapper"><img class="logo" src="../icon/branding.png" alt="FastForward"></div>
4747
</ul>
4848
</nav>
49-
<div class="uk-margin-top uk-margin-bottom uk-margin-left uk-margin-right">
49+
<div>
5050
<div class="container">
5151
<h2>Thank you for installing FastForward</h2>
5252
<p>

src/html/consent.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,3 @@ document.querySelector('#refuse').addEventListener('click', async function () {
2424
console.log("Uninstalling extension.");
2525
browser.management.uninstallSelf();
2626
});
27-
28-
browser.runtime.onInstalled.addListener(async (details) => {
29-
if (details.reason === "install") {
30-
console.log("Extension installed.");
31-
const consentStatus = await getConsentStatus();
32-
console.log("Consent status:", consentStatus);
33-
34-
if (consentStatus !== 'consent-granted') {
35-
console.log("Consent not granted.");
36-
}
37-
}
38-
});

src/js/background.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as constants from './constants.js';
2+
13
const isFirefox = /Firefox/i.test(navigator.userAgent);
24

35
// Check if the browser is Firefox
@@ -190,4 +192,4 @@ function executeBackgroundScript() {
190192
}
191193
});
192194
});
193-
}
195+
}

0 commit comments

Comments
 (0)