Skip to content

Commit 4950ea7

Browse files
committed
Bump to 0.1.2 to try and support Firefox on Android
1 parent faa8f80 commit 4950ea7

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ If you're interested in learning more about addiction dark-patterns, check out o
1212

1313
Disengaged is still in early development. I've only been testing with Firefox.
1414

15-
[Install Firefox Add-on](https://addons.mozilla.org/en-US/firefox/addon/disengaged/)
15+
[Install Firefox Add-on](https://addons.mozilla.org/en-US/firefox/addon/disengaged/) (Requires: Firefox 59 / Firefox on Android 59)
16+
1617

1718
## Getting involved
1819

manifest.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"manifest_version": 2,
3-
"name": "Disengaged",
4-
"version": "0.1.1",
3+
"name": "Disengaged - an Attention Blocker",
4+
"short_name": "Disengaged",
5+
"version": "0.1.2",
56
"description": "The internet sux rn so I deleted the bad parts",
7+
"homepage_url": "https://github.com/a13o/disengaged",
68
"icons": {
79
"48": "icons/icon_48_on.png",
810
"96": "icons/icon_96_on.png"

src/background.js

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ browser.browserAction.onClicked.addListener(() => {
7474
})
7575

7676
function updateIcon () {
77+
// Mobile Firefox doesn't support setIcon
78+
if (!browser.browserAction.setIcon) { return }
79+
7780
browser.browserAction.setIcon({
7881
path: isEnabled ? 'icons/icon_48_on.png' : 'icons/icon_48_off.png'
7982
})

0 commit comments

Comments
 (0)