diff --git a/src/js/libpannellum.js b/src/js/libpannellum.js index 63ab33e..741153c 100644 --- a/src/js/libpannellum.js +++ b/src/js/libpannellum.js @@ -71,7 +71,11 @@ function Renderer(container, image, imageType, video) { console.log('Error: no WebGL support detected!'); throw {type: 'no webgl'}; } - this.image.fullpath = this.image.basePath + this.image.path; + if (this.image.basePath) { + this.image.fullpath = this.image.basePath + this.image.path; + } else { + this.image.fullpath = this.image.path; + } this.image.invTileResolution = 1 / this.image.tileResolution; var vertices = this.createCube();