正常に動くように変更。fx47とfx49での動作を確認

This commit is contained in:
oonuma ryouyu 2016-06-16 09:50:24 -07:00
parent e5465309f8
commit 670ef48bea

View File

@ -47,13 +47,17 @@ AboutGroup.prototype = {
newChannel : function(aURI) newChannel : function(aURI)
{ {
const version = Services.appinfo.platformVersion; const versionString = Services.appinfo.platformVersion;
console.log("hello! this firefox version is"+version);
if(version){ //version(type:number)
console.log("hello! this firefox newChannel"); 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); return Services.io.newChannel('chrome://treestyletab/content/group.xul', null, null);
}else{ }else{
console.log("hello! this firefox newChannel"); dump("hello! this firefox newChannel2 48 >");
return Services.io.newChannel2( return Services.io.newChannel2(
'chrome://treestyletab/content/group.xul', 'chrome://treestyletab/content/group.xul',
null, null,