diff --git a/code/map_data_render.js b/code/map_data_render.js index 7f853d96..4dfc1c78 100644 --- a/code/map_data_render.js +++ b/code/map_data_render.js @@ -245,6 +245,7 @@ window.Render.prototype.createPortalEntity = function(ent) { image: ent[2][7], title: ent[2][8], ornaments: ent[2][9] + // and a new ent[2][10] ??? - maybe mission markers for portals? }; var dataOptions = { diff --git a/code/portal_detail.js b/code/portal_detail.js index 02175fd6..7cde24d0 100644 --- a/code/portal_detail.js +++ b/code/portal_detail.js @@ -50,13 +50,13 @@ var handleResponse = function(guid, data, success) { }; } - if (data.error || !data.result) { + if (!data || data.error || !data.result) { success = false; } if (success) { var dict = { - raw: data.result, +// raw: data.result, type: data.result[0], team: data.result[1], latE6: data.result[2],