diff options
Diffstat (limited to 'js/mediators/io-mediator.js')
-rw-r--r-- | js/mediators/io-mediator.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js index 23668e13..097f5975 100644 --- a/js/mediators/io-mediator.js +++ b/js/mediators/io-mediator.js | |||
@@ -153,7 +153,7 @@ exports.IoMediator = Montage.create(Component, { | |||
153 | switch (file.mode) { | 153 | switch (file.mode) { |
154 | case 'html': | 154 | case 'html': |
155 | //Copy webGL library if needed | 155 | //Copy webGL library if needed |
156 | if (file.webgl.length > 0) { | 156 | if (file.webgl && file.webgl.length > 0) { |
157 | for (var i in this.application.ninja.coreIoApi.ninjaLibrary.libs) { | 157 | for (var i in this.application.ninja.coreIoApi.ninjaLibrary.libs) { |
158 | //Checking for RDGE library to be available | 158 | //Checking for RDGE library to be available |
159 | if (this.application.ninja.coreIoApi.ninjaLibrary.libs[i].name === 'RDGE') { | 159 | if (this.application.ninja.coreIoApi.ninjaLibrary.libs[i].name === 'RDGE') { |
@@ -353,7 +353,7 @@ exports.IoMediator = Montage.create(Component, { | |||
353 | } | 353 | } |
354 | } | 354 | } |
355 | //Checking for webGL elements in document | 355 | //Checking for webGL elements in document |
356 | if (template.webgl.length) { | 356 | if (template.webgl && template.webgl.length) { |
357 | // | 357 | // |
358 | var json, matchingtags = [], webgltag, scripts = template.document.content.document.getElementsByTagName('script'); | 358 | var json, matchingtags = [], webgltag, scripts = template.document.content.document.getElementsByTagName('script'); |
359 | // | 359 | // |