MAPG-103 reset UI elements in case of error
This commit is contained in:
parent
55a1cd24d6
commit
92fd282184
@ -28,14 +28,14 @@
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.responseType = 'json';
|
||||
xhr.onload = function () {
|
||||
document.getElementById('loading').style.visibility = 'hidden';
|
||||
document.getElementById('cover').style.visibility = 'hidden';
|
||||
|
||||
if (this.response.error) {
|
||||
//TODO: handle this error
|
||||
return;
|
||||
}
|
||||
|
||||
document.getElementById('loading').style.visibility = 'hidden';
|
||||
document.getElementById('cover').style.visibility = 'hidden';
|
||||
|
||||
Game.panoId = this.response.panoId;
|
||||
|
||||
if (this.response.history) {
|
||||
|
Loading…
Reference in New Issue
Block a user