using Services.vc.compare instead of compare by string. to standard.
This commit is contained in:
parent
998850b21e
commit
10398b5130
@ -47,14 +47,16 @@ AboutGroup.prototype = {
|
||||
|
||||
newChannel : function(aURI)
|
||||
{
|
||||
const versionString = Services.appinfo.platformVersion;
|
||||
const version = Services.appinfo.platformVersion;
|
||||
|
||||
//version(type:number)
|
||||
const version=(versionString.split(".")[0])-0;
|
||||
|
||||
if( version < 48 ){
|
||||
//1なら48より高い。
|
||||
const comp = Services.vc.compare('48.*',version);
|
||||
dump(comp)
|
||||
if( comp > 0 ){
|
||||
dump("using 48 以下")
|
||||
return Services.io.newChannel('chrome://treestyletab/content/group.xul', null, null);
|
||||
}else{
|
||||
dump("using 49 以上")
|
||||
return Services.io.newChannel2(
|
||||
'chrome://treestyletab/content/group.xul',
|
||||
null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user