From 1c091bed08ff6af05b09742ac59c0d3ad91a0284 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 1 Jul 2010 00:29:01 +0000 Subject: [PATCH] updated for Firefox Sync 1.4 git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6792 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/hacks.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 84b129a0..2122b650 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -1180,7 +1180,12 @@ TreeStyleTabService.overrideExtensionsDelayed = function TSTService_overrideExte // http://www.mozilla.com/en-US/firefox/sync/ if ('gFxWeaveGlue' in window) { let ns = {}; - Components.utils.import('resource://weave/service.js', ns); + try { // 1.4 + Components.utils.import('resource://services-sync/service.js', ns); + } + catch(e) { // 1.3 + Components.utils.import('resource://weave/service.js', ns); + } let engine = ns.Weave.Engines.get('tabs'); let listener = { handleEvent : function(aEvent)