From 68848a6d366282ae659ac9b00c97096fe1d41df5 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Tue, 19 Jan 2010 07:30:10 +0000 Subject: Redirector v2.02 git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@346 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/code/redirector.prototype.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome') diff --git a/chrome/content/code/redirector.prototype.js b/chrome/content/code/redirector.prototype.js index bed05dc..d7b4bc8 100644 --- a/chrome/content/code/redirector.prototype.js +++ b/chrome/content/code/redirector.prototype.js @@ -247,7 +247,7 @@ Redirector.prototype = { var data = this._prefs.redirects; var version = this._prefs.version; this._loadStrings(); - + var currentVersion = '2.0.2'; //Here update checks are handled if (version == 'undefined') { //Either a fresh install of Redirector, or first time install of v2.0 if (data) { //There is some data in redirects, we are upgrading from a previous version, need to upgrade data @@ -263,9 +263,9 @@ Redirector.prototype = { } this._prefs.redirects = newArr.join(':::'); } - this._prefs.version = '2.0.1'; - } else if (version == '2.0') { - this._prefs.version = '2.0.1'; + this._prefs.version = currentVersion; + } else if (version == '2.0' || version == '2.0.1') { + this._prefs.version = currentVersion; } //Update finished -- cgit v1.2.3-70-g09d2