Browse Source

Debugged non-working redirection

Brendan Abolivier 8 years ago
parent
commit
a277681e5e
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      popup.js

+ 1
- 2
popup.js View File

32
     chrome.storage.local.get("sites", function(sites){
32
     chrome.storage.local.get("sites", function(sites){
33
         sites = sites.sites
33
         sites = sites.sites
34
         domain = url.match(/:\/\/([^\/]+)\//)[1]
34
         domain = url.match(/:\/\/([^\/]+)\//)[1]
35
-        console.log(domain)
36
         if(domain in sites) {
35
         if(domain in sites) {
37
-            proxies = sites[url.match(/:\/\/(.+)\//)[1]]
36
+            proxies = sites[domain]
38
             $("#mirror").css("display", "block")
37
             $("#mirror").css("display", "block")
39
             $("#nomirror").css("display", "none")
38
             $("#nomirror").css("display", "none")
40
             $("#mirror button").on("click", function() {
39
             $("#mirror button").on("click", function() {