1j01 / 98

💿 Web-based Windows 98 desktop recreation █████▓█▓▓▒▓▒▒░▒░░░🗕︎🗗︎🗙︎
https://98.js.org
1.15k stars 183 forks source link

Notepad and JSPaint is blank when opening files #60

Open PiSaucer opened 2 years ago

PiSaucer commented 2 years ago

I forked this project and use a subdomain. Whenever I try to use the notepad app it will as open a blank file. I included a screenshot of CREDITS.txt. I noticed that it gave out this error in the console. Any ideas to fix this?

Screen Shot 2022-02-27 at 7 24 47 PM
Uncaught Error: Invalid buffer: Buffer is 582 long, yet Stats object specifies that file is 277 long. preload_file.ts
    at OverlayFile.PreloadFile [as constructor] (preload_file.ts:57:13)
    at new OverlayFile (OverlayFS.ts:35:10)
    at OverlayFS.ts:421:27
    at XmlHttpRequest.ts:373:18
    at NoSyncFile.close (preload_file.ts:404:5)
    at cb (XmlHttpRequest.ts:369:13)
    at XmlHttpRequest.ts:379:9
    at XmlHttpRequest.ts:290:20
    at XMLHttpRequest.req.onreadystatechange (xhr.ts:44:20)
PiSaucer commented 2 years ago

I notice that JSPaint also doesn't work when it's hosted not locally:

Screen Shot 2022-02-28 at 6 44 01 PM
Uncaught Error: Invalid buffer: Buffer is 56017 long, yet Stats object specifies that file is 52339 long.
    at OverlayFile.PreloadFile [as constructor] (preload_file.ts:57:13)
    at new OverlayFile (OverlayFS.ts:35:10)
    at OverlayFS.ts:421:27
    at XmlHttpRequest.ts:373:18
    at NoSyncFile.close (preload_file.ts:404:5)
    at cb (XmlHttpRequest.ts:369:13)
    at XmlHttpRequest.ts:379:9
    at XmlHttpRequest.ts:290:20
    at XMLHttpRequest.req.onreadystatechange (xhr.ts:44:20)
cherrim98 commented 1 year ago

I seem to have this issue too. Not sure why that is the case. Paint works fine for me, though.