You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
345 B
JavaScript
12 lines
345 B
JavaScript
if (localStorage.getItem('first_install_ran')) {
|
|
localStorage.setItem('first_install_ran', 1);
|
|
chrome.tabs.create({url: "options.html"});
|
|
} else {
|
|
if (isRegistrationDone()) {
|
|
subscribeToPush(function(message) {
|
|
console.log("Got message from " + message.source + ": \"" + getString(message.message));
|
|
storeMessage(message);
|
|
});
|
|
}
|
|
}
|