Skip to content

Commit

Permalink
fix: WebXR Browser broken CV pipeline
Browse files Browse the repository at this point in the history
The Base64binary import was broken due to some weird parcel issue, this console.debug
forces its probably import/inclusion.
  • Loading branch information
hi-liang committed Aug 9, 2023
1 parent 7f5f92e commit 976c43f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/systems/armarker/camera-capture/ccwebarviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ export default class WebARViewerCameraCapture {

// WebXRViewer/WebARViewer deliver camera frames to 'processCV'
window.processCV = this.processCV.bind(this);

// For no obvious reason, parcel is optimizing away the import of Base64Binary, so we force include here...
try {
console.debug(Base64Binary, Base64Binary.decodeArrayBuffer());
} catch {
//
}
}

/**
Expand Down

0 comments on commit 976c43f

Please sign in to comment.