diff --git a/src/bundle/otto/windows.ts b/src/bundle/otto/windows.ts index 81ecb18..f4c95ba 100644 --- a/src/bundle/otto/windows.ts +++ b/src/bundle/otto/windows.ts @@ -54,13 +54,11 @@ export class BundleOttoWindows extends BundleOtto { const d = new Uint8Array(4); const v = new DataView(d.buffer, d.byteOffset, d.byteLength); const f = await open(projector.path, 'r'); - let r; try { - r = await f.read(d, 0, 4, 60); + let r = await f.read(d, 0, 4, 60); if (r.bytesRead < 4) { throw new Error('Unknown format'); } - r = await f.read(d, 0, 2, v.getUint32(0, true) + 4); if (r.bytesRead < 2) { throw new Error('Unknown format');