mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
FoxToPhone 1.2.2 Show upgrade notice about the previous problem with the toolbar icons
This commit is contained in:
@@ -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").
|
||||||
|
|||||||
@@ -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", "");
|
||||||
|
|
||||||
|
|||||||
2
third_party/firefox_sendtophone/install.rdf
vendored
2
third_party/firefox_sendtophone/install.rdf
vendored
@@ -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 & Patrick</em:creator>
|
<em:creator>Alfonso & 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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user