[Pkg-mozext-commits] [greasemonkey] 44/55: Repair opening new user welcome page.
David Prévot
taffit at moszumanska.debian.org
Thu Oct 29 15:38:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 999f8b48162ab1e0d114ed5c66d4b441433f9b5e
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Wed Sep 30 10:12:32 2015 -0400
Repair opening new user welcome page.
Fixes #2293
---
content/config.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/content/config.js b/content/config.js
index 3fd7a6c..5fb421a 100644
--- a/content/config.js
+++ b/content/config.js
@@ -284,15 +284,14 @@ Config.prototype._updateVersion = function() {
if ("0.0" == oldVersion) {
// This is the first launch. Show the welcome screen.
var chromeWin = GM_util.getBrowserWindow();
- // If we found it, use it to open a welcome tab.
- if (chromeWin && chromeWin.gBrowser) {
+ if (chromeWin && chromeWin.gBrowser) chromeWin.setTimeout(function() {
var url = 'http://www.greasespot.net/p/welcome.html'
+ '?utm_source=xpi&utm_medium=xpi&utm_campaign=welcome'
+ '&utm_content=' + newVersion;
// the setTimeout makes sure we do not execute too early -- sometimes
// the window isn't quite ready to add a tab yet
- chromeWin.setTimeout(chromeWin.GM_BrowserUI.openTab, 100, url);
- }
+ chromeWin.gBrowser.selectedTab = chromeWin.gBrowser.addTab(url);
+ }, 1000);
}
if (newVersion.match(/^3\.5/) && oldVersion != newVersion) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list