-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalized info display with popup settings. Updated version to 1.1
- Loading branch information
Showing
8 changed files
with
231 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
// Check whether new version is installed | ||
chrome.runtime.onInstalled.addListener(function(details) { | ||
var settings = ['concatRegistrarResults', 'showRegistrarInfoIcons', 'makeCisCharts']; | ||
|
||
chrome.storage.sync.get(settings, function(items) { | ||
var setting; | ||
|
||
for (var i in settings) { | ||
setting = settings[i]; | ||
if (!items.hasOwnProperty(setting)) { | ||
// Enable all settings that haven't been explicitly enabled or disabled before. | ||
chrome.storage.sync.set({setting: true}, function() { }); | ||
} | ||
} | ||
}); | ||
|
||
chrome.tabs.create({ | ||
url: chrome.extension.getURL('options.html') | ||
}); | ||
|
||
// Stackoverflow copypasta: | ||
|
||
// if(details.reason == "install"){ | ||
// console.log("This is a first install!"); | ||
// } else if(details.reason == "update"){ | ||
// var thisVersion = chrome.runtime.getManifest().version; | ||
// console.log("Updated from " + details.previousVersion + " to " + thisVersion + "!"); | ||
// } | ||
}); |
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
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
Oops, something went wrong.