aboutsummaryrefslogtreecommitdiff
path: root/js/mediators/io-mediator.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators/io-mediator.js')
-rw-r--r--js/mediators/io-mediator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js
index e763c67c..65218526 100644
--- a/js/mediators/io-mediator.js
+++ b/js/mediators/io-mediator.js
@@ -150,7 +150,7 @@ exports.IoMediator = Montage.create(Component, {
150 switch (file.mode) { 150 switch (file.mode) {
151 case 'html': 151 case 'html':
152 //Copy webGL library if needed 152 //Copy webGL library if needed
153 if (file.webgl.length > 0) { 153 if (file.webgl && file.webgl.length > 0) {
154 for (var i in this.application.ninja.coreIoApi.ninjaLibrary.libs) { 154 for (var i in this.application.ninja.coreIoApi.ninjaLibrary.libs) {
155 //Checking for RDGE library to be available 155 //Checking for RDGE library to be available
156 if (this.application.ninja.coreIoApi.ninjaLibrary.libs[i].name === 'RDGE') { 156 if (this.application.ninja.coreIoApi.ninjaLibrary.libs[i].name === 'RDGE') {
@@ -308,7 +308,7 @@ exports.IoMediator = Montage.create(Component, {
308 } 308 }
309 } 309 }
310 //Checking for webGL elements in document 310 //Checking for webGL elements in document
311 if (template.webgl.length) { 311 if (template.webgl && template.webgl.length) {
312 // 312 //
313 var json, matchingtags = [], webgltag, scripts = template.document.content.document.getElementsByTagName('script'); 313 var json, matchingtags = [], webgltag, scripts = template.document.content.document.getElementsByTagName('script');
314 // 314 //