diff --git a/third_party/firefox_sendtophone/chrome/content/ff-overlay.js b/third_party/firefox_sendtophone/chrome/content/ff-overlay.js
index f307ece..53eef89 100644
--- a/third_party/firefox_sendtophone/chrome/content/ff-overlay.js
+++ b/third_party/firefox_sendtophone/chrome/content/ff-overlay.js
@@ -21,6 +21,22 @@ sendtophone.init = function()
{
this.installToolbarButton();
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").
diff --git a/third_party/firefox_sendtophone/defaults/preferences/prefs.js b/third_party/firefox_sendtophone/defaults/preferences/prefs.js
index dbdeb24..c076ed8 100644
--- a/third_party/firefox_sendtophone/defaults/preferences/prefs.js
+++ b/third_party/firefox_sendtophone/defaults/preferences/prefs.js
@@ -1,4 +1,5 @@
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.deviceRegistrationId", "");
diff --git a/third_party/firefox_sendtophone/install.rdf b/third_party/firefox_sendtophone/install.rdf
index d2ad6bc..1c723f5 100644
--- a/third_party/firefox_sendtophone/install.rdf
+++ b/third_party/firefox_sendtophone/install.rdf
@@ -4,7 +4,7 @@
sendtophone@martinezdelizarrondo.com
2
Fox To Phone
- 1.2.1beta3
+ 1.2.2
Alfonso & Patrick
Send links to your Android 2.2 phone using the new C2DM service. Based on the ChromeToPhone extension.