From a8df695d6e9af40d7f3e443c54f5ad61715e8083 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Thu, 21 Nov 2019 20:44:16 -0500 Subject: [PATCH] Fix build. --- src/js/pannellum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 1897886..c18d782 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -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);