mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23:12 +09:00
Fixed typo (maybe)
This commit is contained in:
1 parent
68b0d3b75a
commit
9ce7cf5f28
1 file changed
+6
-5
+6
-5
@@ -1,10 +1,10 @@
|
|||||||
function getParameterByName(name, url) {
|
function getParameterByName(name, url) {
|
||||||
if (!url) url = window.location.href;
|
if(!url) url = window.location.href;
|
||||||
name = name.replace(/[\[\]]/g, "\\$&");
|
name = name.replace(/[\[\]]/g, "\\$&");
|
||||||
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
||||||
results = regex.exec(url);
|
results = regex.exec(url);
|
||||||
if (!results) return null;
|
if(!results) return null;
|
||||||
if (!results[2]) return '';
|
if(!results[2]) return '';
|
||||||
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
||||||
}
|
}
|
||||||
remoteMapConfig = {
|
remoteMapConfig = {
|
||||||
@@ -226,8 +226,9 @@ for(let i = 1; i <= 3; i++){
|
|||||||
x:-1,
|
x:-1,
|
||||||
y:-1,
|
y:-1,
|
||||||
},
|
},
|
||||||
},
|
};
|
||||||
entityDrawRules["assembling-machine-"+i] = assemblingMachineTemplate;
|
let name = "assembling-machine-"+i;
|
||||||
|
entityDrawRules[name] = assemblingMachineTemplate;
|
||||||
}
|
}
|
||||||
function drawEntity(entity, dontCache){
|
function drawEntity(entity, dontCache){
|
||||||
if(entity.x && entity.y){
|
if(entity.x && entity.y){
|
||||||
|
|||||||
Reference in new issue
Block a user