-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading assets from the filesystem directly? #102
Comments
As far as I know, fetching from Line 249 in e9c97dc
It uses the config options origin and assetPath . origin defaults to window.location.origin My only suggestion would be to try setting the config option origin to your file:// root path if you haven't tried that already.
|
This example shows how origin was set to point to enable loading files from a different url. Not sure that it will work with |
I figured it out! For anyone curious in the future about how to get this working with something like Obsidian: Electron apps often provide something like an |
I have a situation where I can't make network requests and everything has to be bundled. I can do some juggling of things to write all the assets back into the filesystem somewhere that the application can read them, but I can't actually get dice-box to read from the filesystem itself, given a
file://
path.Is this a thing that's possible at all?
The text was updated successfully, but these errors were encountered: