Skip to content

Commit

Permalink
Fix SuFile
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Nov 3, 2023
1 parent d6e1ea6 commit f42315f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Website/src/native/SuFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ interface NativeSuFileV2 {
* @implements {NativeSuFile}
*/
class SuFile extends Native<NativeSuFile> {
// @ts-ignore - Won't get even called
private _file: ReturnType<NativeSuFile["v2"]>;
private _fs: IFs = wasmFs.fs;
private _path: string;
Expand All @@ -41,7 +42,9 @@ class SuFile extends Native<NativeSuFile> {

this.interfaceName = "__sufile__";
this._path = path;
this._file = (window.__sufile__ as NativeSuFile).v2(path);
if (this.isAndroid) {
this._file = this.interface("v2")(path);
}
}

public read(): string {
Expand Down

0 comments on commit f42315f

Please sign in to comment.