Skip to content

Commit f04b377

Browse files
Merge pull request #605 from privacy-tech-lab/fix/586-remove-dead-firefox-protection
Remove the unused Firefox protection code (protection-ff.js)
2 parents 4636880 + 8214c07 commit f04b377

4 files changed

Lines changed: 2 additions & 760 deletions

File tree

‎README_ARCHITECTURE.md‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ src
88
│   │ ├── background.js
99
│   │ ├── listeners-chrome.js
1010
│   │ ├── listeners-firefox.js
11-
│   │ ├── protection-ff.js
1211
│   │ └── protection.js
1312
│   ├── control.js
1413
│   └── storage.js
@@ -91,7 +90,6 @@ The following source folders have detailed descriptions further in the document.
9190
2. `listeners-chrome.js`
9291
3. `listeners-firefox.js`
9392
4. `protection.js`
94-
5. `protection-ff.js`
9593

9694
#### `protection/background.js`
9795

@@ -105,10 +103,6 @@ Creates listeners for Chrome and Firefox, respectively.
105103

106104
Manages the domain list with functions like `logData();`, `updateDomainlistAndSignal();`, `pullToDomainlistCache();`, `syncDomainlists();`. Also responsible for supplying the popup with the proper information with `dataToPopup();`. Also creates listeners to watch the popup for domain list changes.
107105

108-
#### `protection/protection-ff.js`
109-
110-
Manages the domain list for Firefox.
111-
112106
### `background/control.js`
113107

114108
Uses `protection.js` to turn the extension on and off.

‎src/background/control.js‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ to manage the state & functionality mode of the extension
1111
*/
1212

1313
import {
14-
init as initProtection_ff,
15-
halt as haltProtection_ff,
16-
} from "./protection/protection-ff.js";
17-
import {
18-
init as initProtection_cr,
19-
halt as haltProtection_cr,
14+
init as initProtection,
15+
halt as haltProtection,
2016
} from "./protection/protection.js";
2117
import { defaultSettings } from "../data/defaultSettings.js";
2218
import { stores, storage } from "./storage.js";
@@ -28,12 +24,10 @@ import {
2824
} from "../common/editDomainlist.js";
2925

3026
async function enable() {
31-
var initProtection = initProtection_cr;
3227
initProtection();
3328
}
3429

3530
function disable() {
36-
var haltProtection = haltProtection_cr;
3731
haltProtection();
3832
}
3933

0 commit comments

Comments
 (0)