-
Notifications
You must be signed in to change notification settings - Fork 127
Updating VR polyfill to 0.10.4 #209
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,8 +87,8 @@ <h3>You’ll need a <a href="https://webvr.rocks/">WebVR-enabled browser</a> | |
<button id="entervr" value="Enter VR"></button> | ||
</div> | ||
|
||
<script src="gl-matrix-min.js"></script> | ||
<script src="webvr-polyfill.min.js"></script> | ||
<script src="vendor/gl-matrix-min.js"></script> | ||
<script src="vendor/webvr-polyfill.min.js"></script> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<script src="webvr.js"></script> | ||
</body> | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
var gamepads = []; | ||
var vrGamepads = []; | ||
var toggleVRKeyName = ''; | ||
var vrPolyfill = new WebVRPolyfill(); | ||
|
||
if ('serviceWorker' in navigator && 'isSecureContext' in window && !window.isSecureContext) { | ||
console.warn('The site is insecure; Service Workers will not work and the site will not be recognized as a PWA'); | ||
|
@@ -315,10 +316,7 @@ | |
|
||
// Check to see if we are using polyfill. | ||
function isPolyfilled(display) { | ||
return (display.deviceId || '').indexOf('polyfill') > 0 || | ||
(display.displayName || '').indexOf('polyfill') > 0 || | ||
(display.deviceName || '').indexOf('polyfill') > 0 || | ||
display.hardwareUnitId; | ||
return display.isPolyfilled; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 glad you caught that; it was on my mental todo list |
||
} | ||
|
||
function onKeyUp(evt) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for creating the
vendor/
dir. I like 👍