Skip to content

Commit a2e3036

Browse files
committed
fix(worker): correct ARController export extraction logic
1 parent 26a7a84 commit a2e3036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/worker/worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ async function initArtoolkit(width = 640, height = 480) {
136136
})();
137137

138138
// Safely extract exports (supports both named and default exports)
139-
/*const ARController =
139+
const ARController =
140140
jsartoolkit.ARController ?? jsartoolkit.default?.ARController;
141141
const ARToolkit =
142-
jsartoolkit.ARToolkit ?? jsartoolkit.default?.ARToolkit;*/
142+
jsartoolkit.ARToolkit ?? jsartoolkit.default?.ARToolkit;
143143

144144
if (!ARController) {
145145
throw new Error('ARController export not found in ARToolKit module');

0 commit comments

Comments
 (0)