Default to empty object for cdn URLs

This commit is contained in:
Raul Ochoa 2016-11-22 17:01:34 +01:00
parent 6c69ba54db
commit 1f975e15c1

View File

@ -473,7 +473,7 @@ MapController.prototype.getUrls = function(username, resource) {
MapController.prototype.getUrlsFromTemplate = function(username, resource) {
var urls = {};
var cdnUrl = global.environment.serverMetadata && global.environment.serverMetadata.cdn_url;
var cdnUrl = global.environment.serverMetadata && global.environment.serverMetadata.cdn_url || {};
if (this.resourcesUrlTemplates.http) {
urls.http = this.resourcesUrlTemplates.http({