eimie
Member
Hello everybody,
currently I'm working on an HTML5 project (a kind of level editor) where players can share content via links. To avoid storing anything on my server, I've decided to attach URL parameters with encoded level data at the end of the link. When the user clicks Share, the editor encodes the level data and generates a link with the attached data. When someone visits the editor via this link, the editor decodes the parameters and recreates the level. This works very well, but I'm wondering if it's possible to clear the parameters from the address bar after the level has been rebuilt.
In short:
myfantastichtml5leveleditor.com/?level=9872759103721938472194 should become
myfantastichtml5leveleditor.com
I thought about something similar to the JavaScript function window.history.pushState() (here a thread on stackoverflow).
Is there a way to do this in GML without JavaScript?
Thanks
currently I'm working on an HTML5 project (a kind of level editor) where players can share content via links. To avoid storing anything on my server, I've decided to attach URL parameters with encoded level data at the end of the link. When the user clicks Share, the editor encodes the level data and generates a link with the attached data. When someone visits the editor via this link, the editor decodes the parameters and recreates the level. This works very well, but I'm wondering if it's possible to clear the parameters from the address bar after the level has been rebuilt.
In short:
myfantastichtml5leveleditor.com/?level=9872759103721938472194 should become
myfantastichtml5leveleditor.com
I thought about something similar to the JavaScript function window.history.pushState() (here a thread on stackoverflow).
Is there a way to do this in GML without JavaScript?
Thanks