From 387fb6a0f9a96ff684cea262453a7f5b6afcfbb4 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Tue, 23 Apr 2019 15:05:52 +0200 Subject: Use "modern" branch unconditionally Tests showed that it works without any noticeable problems. As such, it was deemed better to throw it in the wild and see what happens. If there are any problems, this commit can simply be reverted. --- js/vapi-background.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'js/vapi-background.js') diff --git a/js/vapi-background.js b/js/vapi-background.js index 6ca7572..08a84bc 100644 --- a/js/vapi-background.js +++ b/js/vapi-background.js @@ -2597,6 +2597,7 @@ vAPI.toolbarButton = { /******************************************************************************/ +/* (function() { // Add toolbar button for Basilisk if (Services.appinfo.ID !== "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}") { @@ -2669,7 +2670,7 @@ vAPI.toolbarButton = { CustomizableUI.getWidget(tbb.id).areaType === CustomizableUI.TYPE_MENU_PANEL ); } catch (ex) { - /* noop */ + // noop } }; @@ -2725,16 +2726,18 @@ vAPI.toolbarButton = { cleanupTasks.push(shutdown); }; })(); +*/ /******************************************************************************/ -// Firefox Australis >= 36. - (function() { // It appears that this branch actually works on the latest // Basilisk. Maybe we can simply use this one directly instead of // making checks like it's done now. + // It was decided to use this branch unconditionally. It's still + // experimental though. + // Add toolbar button for Basilisk if (Services.appinfo.ID !== "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}") { return; @@ -2744,9 +2747,9 @@ vAPI.toolbarButton = { if ( tbb.init !== null ) { return; } - if ( Services.vc.compare(Services.appinfo.version, '36.0') < 0 ) { - return null; - } + // if ( Services.vc.compare(Services.appinfo.version, '36.0') < 0 ) { + // return null; + // } var CustomizableUI = null; try { CustomizableUI = Cu.import('resource:///modules/CustomizableUI.jsm', null).CustomizableUI; -- cgit v1.2.3