diff options
Diffstat (limited to 'background/reclaim.js')
-rw-r--r-- | background/reclaim.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/background/reclaim.js b/background/reclaim.js index 0c48743..4086659 100644 --- a/background/reclaim.js +++ b/background/reclaim.js | |||
@@ -18,13 +18,13 @@ function handle_onbefore_request(request) | |||
18 | var url = new URL(request.url); | 18 | var url = new URL(request.url); |
19 | 19 | ||
20 | if(url.hostname == "ui.reclaim") { | 20 | if(url.hostname == "ui.reclaim") { |
21 | authzSettings.search = decodeURIComponent(request.url).split("?")[1]; | 21 | authzSettings.search = request.url.split("?")[1]; |
22 | authzSettings.request = true; | 22 | authzSettings.request = true; |
23 | chrome.storage.local.set(authzSettings, function() {}); | 23 | chrome.storage.local.set(authzSettings, function() {}); |
24 | console.log(authzSettings); | 24 | console.log(authzSettings); |
25 | //browser.runtime.openOptionsPage(); | 25 | //browser.runtime.openOptionsPage(); |
26 | //return {}; | 26 | //return {}; |
27 | return {"redirectUrl": chrome.runtime.getURL("/index.html") + "?" + decodeURIComponent(request.url).split("?")[1]} | 27 | return {"redirectUrl": chrome.runtime.getURL("/index.html") + "?" + request.url.split("?")[1]} |
28 | } | 28 | } |
29 | if (url.hostname == "api.reclaim") { | 29 | if (url.hostname == "api.reclaim") { |
30 | return {"redirectUrl": "http://localhost:7776" + url.pathname + url.search}; | 30 | return {"redirectUrl": "http://localhost:7776" + url.pathname + url.search}; |