repo: janusweb action: commit revision: path_from: revision_from: 5de1a3431e5a3ddacd451753a08bdebcae60ec10: path_to: revision_to:
commit 5de1a3431e5a3ddacd451753a08bdebcae60ec10 Author: James BaicoianuDate: Mon Oct 16 12:46:17 2017 -0700 Allow VR capabilities for websurface iframes diff --git a/scripts/websurface.js b/scripts/websurface.js
--- a/scripts/websurface.js
+++ b/scripts/websurface.js
@@ -81,6 +81,7 @@ elation.require(['engine.things.generic'], function() {
var iframe = elation.html.create('iframe');
iframe.src = this.url;
+ iframe.allow = 'vr';
var div = elation.html.create('div');
div.className = 'janusweb_websurface ';
div.appendChild(iframe);
-----END OF PAGE-----