Issue with loading content ("Offline version" of emulator) #448
-
Hello, me and some friends have been designing an offline system with, emulatorjs in mind, and so as part of it, we convert the binary file to base64 and save that into a js file to the user's machine so that it can pulled without having to ask for file permission each time. So right now, we reference a js file with emulatorjs params, a js file with the encoded base64, and then the githack loaderjs script (in that order in the html) The emulator loads just fine, but always says "Failed to Load Content" when trying to pull the data after conversion let coder = new TextEncoder(); (variable 'content' is the base64) EDIT: added more references to files |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
What is the type of the |
Beta Was this translation helpful? Give feedback.
What is the type of the
content
variable? Is it a Uint8Array? ArrayBuffer? Blob?