-
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.
- Loading branch information
Harry Denley
committed
Jun 27, 2017
1 parent
7f95fb1
commit 679a119
Showing
10 changed files
with
119 additions
and
35 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,3 +1,34 @@ | ||
(function() { | ||
document.getElementById('ext-etheraddresslookup-show_style').addEventListener('click', toggleMatchHighlight); | ||
})(); | ||
//Toggle the highlight option and set it in LocalStorage | ||
var objOptionAddHighlight = document.getElementById('ext-etheraddresslookup-show_style'); | ||
if(objOptionAddHighlight) { | ||
objOptionAddHighlight.addEventListener('click', toggleMatchHighlight); | ||
} | ||
|
||
//Get the extension version | ||
var objManifest = chrome.runtime.getManifest(); | ||
var objManifestVersion = document.getElementById('ext-manifest_version'); | ||
if(objManifestVersion) { | ||
objManifestVersion.innerHTML = objManifest.version; | ||
} | ||
})(); | ||
|
||
chrome.runtime.onMessage.addListener( | ||
function(request, sender, sendResponse) { | ||
var strOption = request.func; | ||
var strResponse = ""; | ||
|
||
console.log(request); | ||
|
||
switch(strOption) { | ||
case 'highlight_option' : | ||
strResponse = localStorage.getItem("ext-etheraddresslookup-show_style"); | ||
break; | ||
default: | ||
strResponse = "unsupported"; | ||
break; | ||
} | ||
|
||
sendResponse({resp:strResponse}); | ||
} | ||
); |
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