瀏覽代碼

Replace `readAsBinaryString` with `readAsArrayBuffer` to work with IE 11 (fixes #104).

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

+ 2
- 2
src/js/pannellum.js 查看文件

@@ -387,7 +387,7 @@ function onImageLoad() {
function parseGPanoXMP(image) {
var reader = new FileReader();
reader.addEventListener('loadend', function() {
var img = reader.result;
var img = new Uint8Array(reader.result);

// This awful browser specific test exists because iOS 8 does not work
// with non-progressive encoded JPEGs.
@@ -459,7 +459,7 @@ function parseGPanoXMP(image) {
// Load panorama
panoImage.src = window.URL.createObjectURL(image);
});
reader.readAsBinaryString(image);
reader.readAsArrayBuffer(image);
}

/**


Loading…
取消
儲存