瀏覽代碼

Fix build.

tags/2.5.6
Matthew Petroff 5 年之前
父節點
當前提交
a8df695d6e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
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);


Loading…
取消
儲存