Start of project
This commit is contained in:
16
src/background.js
Normal file
16
src/background.js
Normal file
@@ -0,0 +1,16 @@
|
||||
chrome.runtime.onInstalled.addListener(function() {
|
||||
var data = {
|
||||
apiKey: "the key",
|
||||
groupings: []
|
||||
};
|
||||
|
||||
chrome.storage.sync.set(data, function() {
|
||||
console.log("data initialized");
|
||||
});
|
||||
});
|
||||
|
||||
chrome.browserAction.onClicked.addListener(function() {
|
||||
chrome.tabs.create({
|
||||
url: 'page/groupings.html'
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user