qdot / syncydink

A web based video player that supports multiple viewing modes, haptic formats, and output devices
http://buttplug.world/syncydink
BSD 3-Clause "New" or "Revised" License
21 stars 20 forks source link

Add error message when user tries to load an HTML file as a haptic file #64

Open qdot opened 6 years ago

qdot commented 6 years ago

While script files are being hosted on github, users may accidentally download HTML versions versus raw versions. We should detect whether a file is HTML and throw a warning with recommendation.

greenyouse commented 3 years ago

Hey I coded up a basic alert modal for when this happens. It's not anything fancy but I could tweak the styles and send over a PR for it.

desktop version desktop-alert

mobile version mobile-alert

greenyouse commented 3 years ago

Edit: I uploaded the wrong screenshots by accident. Sorry for the extra spam.