Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Update consent.js

Update consent.html

Update background.js
  • Loading branch information
driedpampas committed Sep 19, 2023
1 parent cdb9c2e commit acd6991
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Package

on:
push:
branches: [main, manifest-v3, testing]
branches: [main, manifest-v3]

workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion src/html/consent.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div class="logo-wrapper"><img class="logo" src="../icon/branding.png" alt="FastForward"></div>
</ul>
</nav>
<div class="uk-margin-top uk-margin-bottom uk-margin-left uk-margin-right">
<div>
<div class="container">
<h2>Thank you for installing FastForward</h2>
<p>
Expand Down
12 changes: 0 additions & 12 deletions src/html/consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,3 @@ document.querySelector('#refuse').addEventListener('click', async function () {
console.log("Uninstalling extension.");
browser.management.uninstallSelf();
});

browser.runtime.onInstalled.addListener(async (details) => {
if (details.reason === "install") {
console.log("Extension installed.");
const consentStatus = await getConsentStatus();
console.log("Consent status:", consentStatus);

if (consentStatus !== 'consent-granted') {
console.log("Consent not granted.");
}
}
});
4 changes: 3 additions & 1 deletion src/js/background.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as constants from './constants.js';

const isFirefox = /Firefox/i.test(navigator.userAgent);

// Check if the browser is Firefox
Expand Down Expand Up @@ -190,4 +192,4 @@ function executeBackgroundScript() {
}
});
});
}
}

0 comments on commit acd6991

Please sign in to comment.