diff --git a/README.md b/README.md index 8880c15..7ec556f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Install from [Google Chrome Web Store](https://chrome.google.com/webstore/detail License ================= -Copyright (C) 2014 Ivan Gualandri and Davide Fiorentino +Copyright (C) 2015 Ivan Gualandri and Davide Fiorentino This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/images/fb_button.png b/images/fb_button.png new file mode 100644 index 0000000..d32acc8 Binary files /dev/null and b/images/fb_button.png differ diff --git a/images/flattr-badge-large.png b/images/flattr-badge-large.png new file mode 100644 index 0000000..1105305 Binary files /dev/null and b/images/flattr-badge-large.png differ diff --git a/images/gplus.png b/images/gplus.png new file mode 100644 index 0000000..7a863a1 Binary files /dev/null and b/images/gplus.png differ diff --git a/images/twitter.png b/images/twitter.png new file mode 100644 index 0000000..a23f48d Binary files /dev/null and b/images/twitter.png differ diff --git a/manifest.json b/manifest.json index 20654eb..954413b 100755 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Parameters Editor", - "version": "1.1", + "version": "1.2", "description": "Shows parameters used in the URL and allows to update, export and import them ", diff --git a/src/background.js b/src/background.js index 331982b..f01f425 100755 --- a/src/background.js +++ b/src/background.js @@ -47,6 +47,12 @@ function onInstall(){ }); } +function onUpdate(){ + console.log("Extension Updated"); + chrome.tabs.create({'url': chrome.extension.getURL('src/post_update.html')}, function(tab){ + }); +} + chrome.runtime.onInstalled.addListener(function(details){ var current_version = getVersion(); var old_version = localStorage['version'] @@ -56,7 +62,10 @@ chrome.runtime.onInstalled.addListener(function(details){ console.log("OnInstall Call"); localStorage['version'] = current_version; onInstall(); + } else { + localStorage['version'] = current_version; + onUpdate(); } } console.log("Reason: " + details.reason); -}); \ No newline at end of file +}); diff --git a/src/popup.html b/src/popup.html index cb6f0fd..654e0fb 100755 --- a/src/popup.html +++ b/src/popup.html @@ -25,9 +25,14 @@ div#report_bug { text-align: right; } + div#social_bar { + display: none; + } #report_bug a:link { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} #report_bug a:visited { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} + #social_link a:link { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} + #social_link a:visited { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} @@ -48,13 +53,26 @@
-