Skip to content

Commit 22fb85e

Browse files
authored
fix(KTX2Loader): web worker scope (#374)
1 parent eab87ab commit 22fb85e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/loaders/KTX2Loader.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,12 @@ class KTX2Loader extends Loader {
129129
let transcoderPending
130130
let BasisModule
131131

132-
const EngineFormat = KTX2Loader.EngineFormat
133-
const TranscoderFormat = KTX2Loader.TranscoderFormat
134-
const BasisFormat = KTX2Loader.BasisFormat
132+
/** @type KTX2Loader.EngineFormat */
133+
const EngineFormat = _EngineFormat
134+
/** @type KTX2Loader.TranscoderFormat */
135+
const TranscoderFormat = _TranscoderFormat
136+
/** @type KTX2Loader.BasisFormat */
137+
const BasisFormat = _BasisFormat
135138

136139
self.addEventListener('message', function (e) {
137140
const message = e.data

0 commit comments

Comments
 (0)