Browse Source

Fix build.

tags/2.5.6
Matthew Petroff 5 years ago
parent
commit
a8df695d6e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
src/js/pannellum.js View File

@@ -2341,7 +2341,7 @@ function stopOrientation() {
*/
function startOrientation() {
if (typeof DeviceMotionEvent.requestPermission === 'function') {
DeviceOrientationEvent.requestPermission().then(response => {
DeviceOrientationEvent.requestPermission().then(function(response) {
if (response == 'granted') {
orientation = 1;
window.addEventListener('deviceorientation', orientationListener);


Loading…
Cancel
Save