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