reuse less function names

This commit is contained in:
idk
2019-11-24 17:43:43 -05:00
parent 070955225d
commit 8d14c945f3

View File

@@ -304,18 +304,9 @@ var contextSetup = async function(requestDetails) {
});
created.then(onCreated, onError);
}
var gettingInfo = browser.runtime.getPlatformInfo();
gettingInfo.then(got => {
if (got.os == "android") {
var getting = browser.windows.getCurrent();
getting.then(Create);
return tabId;
} else {
var getting = browser.windows.getCurrent();
getting.then(Create);
return tabId;
}
});
var getting = browser.tabs.getCurrent();
getting.then(Create);
return tabId;
}
}
} catch (error) {