diff options
author | Jose Antonio Marquez | 2012-03-06 11:24:25 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-06 11:24:25 -0800 |
commit | 7271c25bf34917b1751f433d284f21485057425b (patch) | |
tree | f14f55c30eef561b02aafacf1aa9ceffc82570e1 /js/mediators | |
parent | 3c4967fa93b3abc529fc404115707307ba72d5cd (diff) | |
download | ninja-7271c25bf34917b1751f433d284f21485057425b.tar.gz |
Fixing WebGL not available bug
Diffstat (limited to 'js/mediators')
-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 | // |