Skip to content

Commit

Permalink
chore: Swap webvr for webxr polyfill packages (PR fix ups)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Staunton-Lambert committed Dec 20, 2022
1 parent 2603836 commit ff858af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'babel-polyfill';
import {version as VERSION} from '../package.json';
import window from 'global/window';
import document from 'global/document';
Expand Down Expand Up @@ -805,7 +804,7 @@ void main() {
// For iOS we need permission for the device orientation data, this will pop up an 'Allow'
// eslint-disable-next-line
if (typeof window.DeviceMotionEvent === 'function' &&
typeof window.DeviceMotionEvent.requestPermission === "function") {
typeof window.DeviceMotionEvent.requestPermission === 'function') {
const self = this;

window.DeviceMotionEvent.requestPermission().then(response => {
Expand Down

0 comments on commit ff858af

Please sign in to comment.