FoxToPhone 1.2.2 Show upgrade notice about the previous problem with the toolbar icons

This commit is contained in:
amla70
2011-10-12 17:21:12 +00:00
parent 02cf609573
commit d29c735edb
3 changed files with 18 additions and 1 deletions

View File

@@ -21,6 +21,22 @@ sendtophone.init = function()
{ {
this.installToolbarButton(); this.installToolbarButton();
this.prefs.setBoolPref( "installedButton", true ) ; this.prefs.setBoolPref( "installedButton", true ) ;
this.prefs.setIntPref( "latestNotice", 10202 ) ; // There's no need to show the 1.2.2 notice for new installs
}
else
{
if (this.prefs.getIntPref( "latestNotice" )<10202)
{
var firefoxnav = document.getElementById("nav-bar");
var curSet = firefoxnav.currentSet;
if (curSet.indexOf("sendtophone-toolbar-button") > -1)
{
// The button is on the toolbar, show upgrade notice
sendtophoneCore.openTab( "http://www.foxtophone.com/2011/10/sorry-we-made-a-mistake/" );
}
this.prefs.setIntPref( "latestNotice", 10202 ) ;
}
} }
document.getElementById("contentAreaContextMenu"). document.getElementById("contentAreaContextMenu").

View File

@@ -1,4 +1,5 @@
pref("extensions.sendtophone.installedButton", false); pref("extensions.sendtophone.installedButton", false);
pref("extensions.sendtophone.latestNotice", 0); // If we have to show some upgrade. Store the last version that showed such a notice
pref("extensions.sendtophone.appUrl", "https://chrometophone.appspot.com"); pref("extensions.sendtophone.appUrl", "https://chrometophone.appspot.com");
pref("extensions.sendtophone.deviceRegistrationId", ""); pref("extensions.sendtophone.deviceRegistrationId", "");

View File

@@ -4,7 +4,7 @@
<em:id>sendtophone@martinezdelizarrondo.com</em:id> <em:id>sendtophone@martinezdelizarrondo.com</em:id>
<em:type>2</em:type> <em:type>2</em:type>
<em:name>Fox To Phone</em:name> <em:name>Fox To Phone</em:name>
<em:version>1.2.1beta3</em:version> <em:version>1.2.2</em:version>
<em:creator>Alfonso &amp; Patrick</em:creator> <em:creator>Alfonso &amp; Patrick</em:creator>
<em:description>Send links to your Android 2.2 phone using the new C2DM service. Based on the ChromeToPhone extension.</em:description> <em:description>Send links to your Android 2.2 phone using the new C2DM service. Based on the ChromeToPhone extension.</em:description>