Skip to content

Commit 976c43f

Browse files
committed
fix: WebXR Browser broken CV pipeline
The Base64binary import was broken due to some weird parcel issue, this console.debug forces its probably import/inclusion.
1 parent 7f5f92e commit 976c43f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/systems/armarker/camera-capture/ccwebarviewer.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ export default class WebARViewerCameraCapture {
4949

5050
// WebXRViewer/WebARViewer deliver camera frames to 'processCV'
5151
window.processCV = this.processCV.bind(this);
52+
53+
// For no obvious reason, parcel is optimizing away the import of Base64Binary, so we force include here...
54+
try {
55+
console.debug(Base64Binary, Base64Binary.decodeArrayBuffer());
56+
} catch {
57+
//
58+
}
5259
}
5360

5461
/**

0 commit comments

Comments
 (0)