diff --git a/background.js b/src/background.js similarity index 98% rename from background.js rename to src/background.js index a395c3e..1380551 100644 --- a/background.js +++ b/src/background.js @@ -101,7 +101,7 @@ const sync = () => return reject("Please set a valid WaniKani API Token") // Get user info - var user = await query(data.token, "https://api.wanikani.com/v2/user").catch(reason => reject("WaniKani API request failed: " + reason)) + var user = await query(data.token, "https://api.wanikani.com/v2/user").catch(reason => reject(reason)) if(user === undefined) return