mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-25 20:16:00 +01:00
commit
fe3f8eb53e
@ -88,7 +88,10 @@ export default class BlueMap {
|
|||||||
|
|
||||||
this.initModules();
|
this.initModules();
|
||||||
this.start();
|
this.start();
|
||||||
}).catch(error => this.onLoadError(error.toString()));
|
}).catch(error => {
|
||||||
|
this.onLoadError(error.toString())
|
||||||
|
console.error(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
initModules() {
|
initModules() {
|
||||||
@ -211,7 +214,10 @@ export default class BlueMap {
|
|||||||
+ ':' + Math.round(this.controls.targetDistance * 100) / 100
|
+ ':' + Math.round(this.controls.targetDistance * 100) / 100
|
||||||
+ ':' + Math.ceil(this.controls.targetAngle * 100) / 100
|
+ ':' + Math.ceil(this.controls.targetAngle * 100) / 100
|
||||||
+ ':' + Math.floor(this.controls.targetPosition.y);
|
+ ':' + Math.floor(this.controls.targetPosition.y);
|
||||||
|
// only update hash when changed
|
||||||
|
if (window.location.hash !== this.locationHash) {
|
||||||
history.replaceState(undefined, undefined, this.locationHash);
|
history.replaceState(undefined, undefined, this.locationHash);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
render = () => {
|
render = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user