From 3c1f07fa816bf348555b96b5b7df9a29675de09a Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Fri, 16 Oct 2009 14:39:31 +0000 Subject: Redirector 2.0 Candidate 3 git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@275 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/code/redirector.prototype.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'chrome/content/code') diff --git a/chrome/content/code/redirector.prototype.js b/chrome/content/code/redirector.prototype.js index 74f7e61..a20a46a 100644 --- a/chrome/content/code/redirector.prototype.js +++ b/chrome/content/code/redirector.prototype.js @@ -10,10 +10,10 @@ Redirector.prototype = { init : function() { this.prefs = new Prefs(); //Check if we need to update existing redirects - - var data = this.prefs.redirects; + var data = this.prefs.redirects; var version = this.prefs.version; this.loadStrings(); + //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 @@ -46,6 +46,10 @@ Redirector.prototype = { } }, + observe : function(topic, subject, data) { + dump("HEEEEEEEEEEEEEEEEEEEEE"); + }, + loadStrings : function() { var src = 'chrome://redirector/locale/redirector.properties'; var localeService = Cc["@mozilla.org/intl/nslocaleservice;1"].getService(Ci.nsILocaleService); -- cgit v1.2.3-70-g09d2