properly check if portal details are available
This commit is contained in:
parent
847a3d5fc1
commit
4c07fb12ae
@ -4,13 +4,14 @@
|
|||||||
// methods that highlight the portal in the map view.
|
// methods that highlight the portal in the map view.
|
||||||
|
|
||||||
window.renderPortalDetails = function(guid) {
|
window.renderPortalDetails = function(guid) {
|
||||||
var d = window.portals[guid].options.details;
|
if(!window.portals[guid]) {
|
||||||
if(!d) {
|
|
||||||
unselectOldPortal();
|
unselectOldPortal();
|
||||||
urlPortal = guid;
|
urlPortal = guid;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var d = window.portals[guid].options.details;
|
||||||
|
|
||||||
var update = selectPortal(guid);
|
var update = selectPortal(guid);
|
||||||
|
|
||||||
// collect some random data that’s not worth to put in an own method
|
// collect some random data that’s not worth to put in an own method
|
||||||
|
Loading…
x
Reference in New Issue
Block a user