From 670ef48beaaad0b30313a0b45486331f33193e9e Mon Sep 17 00:00:00 2001 From: oonuma ryouyu Date: Thu, 16 Jun 2016 09:50:24 -0700 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E3=81=AB=E5=8B=95=E3=81=8F?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4=E3=80=82fx47?= =?UTF-8?q?=E3=81=A8fx49=E3=81=A7=E3=81=AE=E5=8B=95=E4=BD=9C=E3=82=92?= =?UTF-8?q?=E7=A2=BA=E8=AA=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AboutGroup.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/components/AboutGroup.js b/components/AboutGroup.js index a2a142c2..eb3012c4 100644 --- a/components/AboutGroup.js +++ b/components/AboutGroup.js @@ -47,13 +47,17 @@ AboutGroup.prototype = { newChannel : function(aURI) { - const version = Services.appinfo.platformVersion; - console.log("hello! this firefox version is"+version); - if(version){ - console.log("hello! this firefox newChannel"); + const versionString = Services.appinfo.platformVersion; + + //version(type:number) + const version=(versionString.split(".")[0])-0; + + dump("hello! this firefox version is"+version); + if( version < 48 ){ + dump("hello! this firefox newChannel 48 < "); return Services.io.newChannel('chrome://treestyletab/content/group.xul', null, null); }else{ - console.log("hello! this firefox newChannel"); + dump("hello! this firefox newChannel2 48 >"); return Services.io.newChannel2( 'chrome://treestyletab/content/group.xul', null,