Skip to content

Commit f895782

Browse files
committed
Removed Fennec-specific code.
1 parent 78ac354 commit f895782

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

src/bg/main.js

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -141,27 +141,9 @@
141141
}
142142

143143
// wiring main UI
144-
const ba = browser.browserAction;
145-
if ("setIcon" in ba) {
146-
//desktop or Fenix
147-
ba.setPopup({
148-
popup: popupURL
149-
});
150-
} else {
151-
// Fennec
152-
ba.onClicked.addListener(async tab => {
153-
try {
154-
await browser.tabs.remove(await browser.tabs.query({
155-
url: popupURL
156-
}));
157-
} catch (e) {}
158-
await browser.tabs.create({
159-
url: popupFor(tab.id)
160-
});
161-
});
162-
}
144+
browser.browserAction.setPopup({popup: popupURL});
163145
}
164-
}
146+
};
165147

166148
const messageHandler = {
167149
async updateSettings(settings, sender) {

0 commit comments

Comments
 (0)