Skip to content

Commit

Permalink
Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
attanasio94g committed Apr 17, 2016
1 parent 109fb55 commit 78825b0
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,9 @@ chrome.runtime.onInstalled.addListener(function () {
chrome.storage.sync.get(function(items) {
//Fired on first installation
if(typeof items.settings === 'undefined'){
chrome.storage.sync.set({'settings': ({timeEp: 30, notification: true, popup: 'popup/myserie.html' }), version: '1.0'});
chrome.storage.sync.set({'settings': ({timeEp: 30, notification: true, popup: 'popup/myserie.html' })});
window.open('../settings/settings.html');
}

/*//Fired on update of the extension
if(items.version == '1.0') //or other version
{
chrome.storage.sync.set({version: '1.01'}, function()
{
console.log("Extension updated.")
//Open changelog.
});
}*/
});
});

Expand Down

0 comments on commit 78825b0

Please sign in to comment.