quixe
quixe copied to clipboard
GiLoad will download the story file even if it's provided
https://github.com/erkyrath/quixe/blob/12d43e17f399fd3bc008397f1aff0d91538d4678/src/quixe/gi_load.js#L221-L223
This should just be if (image) {
shouldn't it?
I think I decided that, since the ?story= parameter can be added after the fact, it should override the image configuration parameter.
Do you mean through the Web History API (history.pushState)? That's an odd use case, but okay.
I'd like to be able to use GiLoad in Parchment without modification and be able to pass it the image buffer to use. So maybe there could be an extra option to say to not download it if ?story exists, or the reverse (I'd prefer explicit opt-in to overriding the image, but your choice.)
By "after the fact", I meant by the user, typing manually in the URL bar. Or by any page that generates a URL for the user to click on, referring to an established interpreter setup.
If you're passing in the image buffer, shouldn't gameurl be null?
(Apologies for the long response time, things slip by.)