Verified Commit 3f5b723a authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Improve support for mobile versions of Firefox

parent a04a502b
......@@ -340,8 +340,13 @@ popup._close = function () {
if (information.os === chrome.runtime.PlatformOs.ANDROID) {
chrome.tabs.getCurrent(function (tab) {
chrome.tabs.remove(tab.id);
chrome.tabs.getCurrent(function (activeTab) {
if (activeTab) {
chrome.tabs.remove(activeTab.id);
} else {
window.close();
}
});
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment