[Pkg-mozext-commits] [itsalltext] 229/459: Fixed the readme loading problem.
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:24 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 47130c6e0e0ff1fa4859340ff430874c887b7f56
Author: Christian Höltje <docwhat at gerf.org>
Date: Fri Jun 8 20:09:34 2007 -0400
Fixed the readme loading problem.
---
src/chrome/content/itsalltext.js | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/chrome/content/itsalltext.js b/src/chrome/content/itsalltext.js
index bc50dc9..3e80ab3 100644
--- a/src/chrome/content/itsalltext.js
+++ b/src/chrome/content/itsalltext.js
@@ -708,15 +708,18 @@ var ItsAllText = function() {
};
that.checkVersion = function() {
- var browser;
if( that.preferences._get('lastversion') != that.VERSION) {
setTimeout(function(){
+ var browser;
try{
- browser = getBrowser();
- browser.selectedTab = browser.addTab(that.README, null);
- that.preferences._set('lastversion', that.VERSION);
+ if( that.preferences._get('lastversion') != that.VERSION) {
+ browser = getBrowser();
+ browser.selectedTab = browser.addTab(that.README,
+ null);
+ that.preferences._set('lastversion', that.VERSION);
+ }
} catch(e) {
- // pass
+ that.preferences._set('lastversion', '');
}
}, 100);
}
@@ -736,7 +739,9 @@ var ItsAllText = function() {
that.monitor.restart();
// Check if there was an update and show the page...
- that.checkVersion();
+ window.setTimeout(function() {
+ that.checkVersion();
+ }, 10);
var appcontent = document.getElementById("appcontent"); // The Browser
if (appcontent) {
--
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