fixed es6 should not be used ub games
This commit is contained in:
parent
afa50b618c
commit
b2fcd9b705
|
@ -158,7 +158,7 @@
|
||||||
var parts = [PosToString(self.pos[0]), PosToString(self.pos[self.pos.length - 1])];
|
var parts = [PosToString(self.pos[0]), PosToString(self.pos[self.pos.length - 1])];
|
||||||
if (self.capt[1]) {
|
if (self.capt[1]) {
|
||||||
sep = "x";
|
sep = "x";
|
||||||
var capts = self.capt.slice(1).map((pos) => {
|
var capts = self.capt.slice(1).map(function(pos) {
|
||||||
return PosToString(pos);
|
return PosToString(pos);
|
||||||
});
|
});
|
||||||
capts.sort();
|
capts.sort();
|
||||||
|
@ -178,7 +178,7 @@
|
||||||
parts = parts.concat(capts);
|
parts = parts.concat(capts);
|
||||||
} else
|
} else
|
||||||
parts.push(0);
|
parts.push(0);
|
||||||
return parts.map((num)=>{
|
return parts.map(function(num) {
|
||||||
return num<10 ? "0"+num : num;
|
return num<10 ? "0"+num : num;
|
||||||
}).join("");
|
}).join("");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue