small fixes

This commit is contained in:
ngxson
2020-08-02 11:52:31 +02:00
parent 46a374a940
commit 493574a029
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ global.isBackgroundJS = true;
/**
* Get app settings
*/
async function handerGetAppSettings() {
async function handleGetAppSettings() {
return {
showSLButton:
(await SLStorage.get(SLStorage.SETTINGS.API_KEY)) !== "" &&
@@ -28,7 +28,7 @@ global.browser.runtime.onMessage.addListener(async function (request, sender) {
if (request.tag === "NEW_RANDOM_ALIAS") {
return await handleNewRandomAlias(sender.tab);
} else if (request.tag === "GET_APP_SETTINGS") {
return await handerGetAppSettings();
return await handleGetAppSettings();
}
});
+1 -1
View File
@@ -79,7 +79,7 @@ const callAPI = async function (
}
if (err.response.status === 401 && !global.isBackgroundJS) {
handle401Error();
await handle401Error();
return null;
}