Преглед изворни кода

A-Frame plugin: add the crossOrigin attribute to reference images

customisations
alemart пре 6 месеци
родитељ
комит
025e18a29a
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1
    0
      plugins/aframe-with-encantar.js

+ 1
- 0
plugins/aframe-with-encantar.js Прегледај датотеку

@@ -968,6 +968,7 @@ AFRAME.registerComponent('ar-reference-image', ARComponent({
968 968
             throw new Error('Unspecified src attribute of ar-reference-image');
969 969
 
970 970
         const img = new Image();
971
+        img.crossOrigin = 'anonymous';
971 972
         img.src = this.data.src;
972 973
 
973 974
         return {

Loading…
Откажи
Сачувај