From ab170f086c010becdb4717f3bd9503b2e3421a2f Mon Sep 17 00:00:00 2001 From: saneyuki_s Date: Thu, 3 Jan 2013 09:59:43 +0900 Subject: [PATCH] Fix to fail loading module. --- modules/window.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/window.js b/modules/window.js index 64f6730c..b7af1115 100644 --- a/modules/window.js +++ b/modules/window.js @@ -40,11 +40,8 @@ const Ci = Components.interfaces; Components.utils.import('resource://gre/modules/XPCOMUtils.jsm'); -XPCOMUtils.defineLazyGetter(this, 'prefs', function() { - Components.utils.import('resource://treestyletab-modules/lib/prefs.js'); - return window['piro.sakura.ne.jp'].prefs; -}); - +XPCOMUtils.defineLazyModuleGetter(this, "prefs", + 'resource://treestyletab-modules/lib/prefs.js'); XPCOMUtils.defineLazyModuleGetter(this, "Services", "resource://gre/modules/Services.jsm"); Components.utils.import('resource://treestyletab-modules/base.js');