|
|
|
|
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() {
|