-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* hf-22: Adjusted text Removed debug Added styling for the attention view Increased version number Added more thanks Issue #22 - Added more logic to fix syncing issues, especially on initial install Issue #22 - Enabled blocking blacklisted domains by default Sets the default explorer to etherscan for initial install Added thanks Issue #22 - Added logic to fetch/check for updates on init of the extension. This should fix the syncing issues
- Loading branch information
Showing
10 changed files
with
94 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#### Thanks! | ||
|
||
These images were gifted to us by the guys over at [CRYPTOMINDED](http://cryptominded.com/). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
//On page load it selects the default blockchain explorer | ||
(function() { | ||
refreshBlockchainExplorer(); | ||
})(); | ||
|
||
//Sets the local storage to remember their match favourite blockchain explorer | ||
function toggleBlockchainExplorer() { | ||
var objBlockchainExplorer = document.getElementById("ext-etheraddresslookup-choose_blockchain"); | ||
localStorage.setItem("ext-etheraddresslookup-blockchain_explorer", objBlockchainExplorer.options[objBlockchainExplorer.selectedIndex].value); | ||
refreshBlockchainExplorer(); | ||
} | ||
|
||
function refreshBlockchainExplorer() { | ||
var strBlockchainExplorer = localStorage.getItem("ext-etheraddresslookup-blockchain_explorer"); | ||
document.getElementById("ext-etheraddresslookup-choose_blockchain").value = strBlockchainExplorer; | ||
|
||
//Notify the tab to do a class method | ||
var strMethod = "changeBlockchainExplorer"; | ||
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { | ||
chrome.tabs.sendMessage(tabs[0].id, { | ||
"func":strMethod | ||
}, function(response) { | ||
console.log(response); | ||
}); | ||
}); | ||
//On page load it selects the default blockchain explorer | ||
(function() { | ||
refreshBlockchainExplorer(); | ||
})(); | ||
|
||
//Sets the local storage to remember their match favourite blockchain explorer | ||
function toggleBlockchainExplorer() { | ||
var objBlockchainExplorer = document.getElementById("ext-etheraddresslookup-choose_blockchain"); | ||
localStorage.setItem("ext-etheraddresslookup-blockchain_explorer", objBlockchainExplorer.options[objBlockchainExplorer.selectedIndex].value); | ||
refreshBlockchainExplorer(); | ||
} | ||
|
||
function refreshBlockchainExplorer() { | ||
var strBlockchainExplorer = localStorage.getItem("ext-etheraddresslookup-blockchain_explorer"); | ||
|
||
if(strBlockchainExplorer === null) { | ||
document.getElementById("ext-etheraddresslookup-choose_blockchain").value = "https://etherscan.io/address"; | ||
} else { | ||
document.getElementById("ext-etheraddresslookup-choose_blockchain").value = strBlockchainExplorer; | ||
} | ||
|
||
//Notify the tab to do a class method | ||
var strMethod = "changeBlockchainExplorer"; | ||
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { | ||
chrome.tabs.sendMessage(tabs[0].id, { | ||
"func":strMethod | ||
}, function(response) { | ||
console.log(response); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters