Skip to content
Browse files

Don't fail in Firefox 3; Don't install in 4+.

  • Loading branch information...
1 parent 2b088fa commit 153a2d9556d341878e7dabb70e5343d2e37d544d @arantius arantius committed Sep 7, 2011
Showing with 1 addition and 34 deletions.
  1. +0 −33 content/config.js
  2. +1 −1 install.rdf
View
33 content/config.js
@@ -415,40 +415,7 @@ Config.prototype.updateModifiedScripts = function(safeWin, chromeWin) {
* any necessary upgrades.
*/
Config.prototype._updateVersion = function() {
- // this is the last version which has been run at least once
- var initialized = GM_prefRoot.getValue("version", "0.0");
-
- if ("0.0" == initialized) {
- // this is the first launch. show the welcome screen.
-
- var chromeWin = GM_getBrowserWindow();
- // if we found it, use it to open a welcome tab
- if (chromeWin.gBrowser) {
- Components.utils.import("resource://gre/modules/AddonManager.jsm");
- AddonManager.getAddonByID(this.GM_GUID, function(addon) {
- chromeWin.gBrowser.selectedTab = chromeWin.gBrowser.addTab(
- 'http://www.greasespot.net/p/welcome.html?' + addon.version);
- });
- }
- }
- if (GM_compareVersions(initialized, "0.8") == -1)
- this._pointEightBackup();
-
- // update the currently initialized version so we don't do this work again.
- if ("@mozilla.org/extensions/manager;1" in Components.classes) {
- // Firefox <= 3.6.*
- var extMan = Components.classes["@mozilla.org/extensions/manager;1"]
- .getService(Components.interfaces.nsIExtensionManager);
- var item = extMan.getItemForID(this.GM_GUID);
- GM_prefRoot.setValue("version", item.version);
- } else {
- // Firefox 3.7+
- Components.utils.import("resource://gre/modules/AddonManager.jsm");
- AddonManager.getAddonByID(this.GM_GUID, function(addon) {
- GM_prefRoot.setValue("version", addon.version);
- });
- }
};
/**
View
2 install.rdf
@@ -43,7 +43,7 @@
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>3.5</em:minVersion>
- <em:maxVersion>7.*</em:maxVersion>
+ <em:maxVersion>3.5.*</em:maxVersion>
</Description>
</em:targetApplication>

0 comments on commit 153a2d9

Please sign in to comment.
Something went wrong with that request. Please try again.