Permalink
Browse files

Host the welcome page on the blog, not the wiki.

  • Loading branch information...
1 parent 2421301 commit 803c0b57fe09d87b6a9553c20af0d3eefb104f29 @arantius arantius committed Aug 1, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 content/config.js
View
@@ -424,11 +424,11 @@ Config.prototype._updateVersion = function() {
var chromeWin = GM_getBrowserWindow();
// if we found it, use it to open a welcome tab
if (chromeWin.gBrowser) {
- // the setTimeout makes sure we do not execute too early -- sometimes
- // the window isn't quite ready to add a tab yet
- chromeWin.setTimeout(
- "gBrowser.selectedTab = gBrowser.addTab(" +
- "'http://wiki.greasespot.net/Welcome')", 0);
+ 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);
+ });
}
}

0 comments on commit 803c0b5

Please sign in to comment.