Skip to content

Commit

Permalink
remove consent temporarily to confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
driedpampas authored Sep 30, 2023
1 parent e106a82 commit 27db7ce
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 112 deletions.
66 changes: 0 additions & 66 deletions src/html/consent.html

This file was deleted.

26 changes: 0 additions & 26 deletions src/html/consent.js

This file was deleted.

20 changes: 0 additions & 20 deletions src/js/background.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
import * as constants from './constants.js';

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

// Check if the browser is Firefox
if (isFirefox) {
browser.runtime.onInstalled.addListener((details) => {
if (details.reason === 'install') {
browser.storage.local.get('consentStatus').then(function (data) {
const consentStatus = data.consentStatus;
if (consentStatus !== 'granted') {
browser.tabs.create({
url: 'html/consent.html',
});
return;
}
});
return;
}
});
}

const brws = typeof browser !== 'undefined' ? browser : chrome;
const fetchDomains = ['crowd.fastforward.team', 'redirect-api.work.ink']; //only allow requests to these domains

Expand Down

0 comments on commit 27db7ce

Please sign in to comment.