Default to empty object for cdn URLs
This commit is contained in:
parent
6c69ba54db
commit
1f975e15c1
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user