Skip to content

Commit

Permalink
Remove crossorigin support
Browse files Browse the repository at this point in the history
It was breaking the library.

#14
  • Loading branch information
steren committed Jan 30, 2022
1 parent 6c4ea69 commit 6c23c6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parsers/anaglyph-parser/anaglyph-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function parseAnaglyph(url) {
const response = await fetch(url);
const blob = await response.blob();
const image = await createImageBitmap(blob);
image.crossOrigin = "Anonymous";
//image.crossOrigin = "Anonymous";
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
const width = image.width;
Expand Down
2 changes: 1 addition & 1 deletion parsers/stereo-parser/stereo-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import exifr from 'exifr'
* */
async function parseStereo(url, options) {
const image = await createImageFromURL(url);
image.crossOrigin = "Anonymous";
//image.crossOrigin = "Anonymous";

const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
Expand Down
2 changes: 1 addition & 1 deletion parsers/vr-parser/vr-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import exifr from 'exifr';

async function parseVR(url) {
const image = await createImageFromURL(url);
image.crossOrigin = "Anonymous";
//image.crossOrigin = "Anonymous";

const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
Expand Down

0 comments on commit 6c23c6e

Please sign in to comment.