[Pkg-mozext-commits] [itsalltext] 201/459: Fixed the new window opener

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit 87186ef6c767230df7978176f513fabeed4d440c
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Fri Apr 6 15:31:40 2007 -0400

    Fixed the new window opener
---
 src/chrome/content/itsalltext.js | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/chrome/content/itsalltext.js b/src/chrome/content/itsalltext.js
index 32e0756..47354f2 100644
--- a/src/chrome/content/itsalltext.js
+++ b/src/chrome/content/itsalltext.js
@@ -702,10 +702,13 @@ var ItsAllText = function() {
 
     that.checkVersion = function() {
         if( that.preferences._get('lastversion') != that.VERSION) {
-            that.preferences._set('lastversion', that.VERSION);
-            window.setTimeout(function() {
-                var browser = getBrowser();
-                browser.selectedTab = browser.addTab(that.README, null);
+            setTimeout(function(){
+                try{
+                    var browser = getBrowser();
+                    browser.selectedTab = browser.addTab(that.README, null);
+                    that.preferences._set('lastversion', that.VERSION);
+                } catch(e) {
+                };
             }, 100);
         }
     };
@@ -723,8 +726,9 @@ var ItsAllText = function() {
         // Start the monitor
         that.monitor.restart();
 
+        // Check if there was an update and show the page...
         that.checkVersion();
-
+        
         var appcontent = document.getElementById("appcontent"); // The Browser
         if (appcontent) {
             // Normal web-page.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list