You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just started looking at the code, and seems like, at code loads the default config, and then relies upon LocalStorage "LastWheelConfig" so the code shared above will only work at the initial load.
There are more better alternatives like use of hash based routing and change the LocalStorage based on hash change. Also a better more secured query string or hash route parser can be used to load the whole config using query string params.
It could also be a base64 encoded string that can be deserialized, and one way to share the wheels would be to share the urls with whole config as base64 encoded string.
However, be careful with user provided input and regex it could be very insecure. The sample code is just an example.
I'd like to be able to save a wheel with my customizations and then set the default choices by passing in a URL parameter:
https://wheelofnames.com/jmj-a7b?choices=Leo,Fred,Monica,Jane
This would set up the wheel with the following choices:
Leo
Fred
Monica
Jane
The text was updated successfully, but these errors were encountered: