fkchang / opal-hot-reloader

Hot code reloading for Opal apps, includes React.rb support
MIT License
17 stars 8 forks source link

Turn off Load Error alert box #9

Closed VinceG3 closed 7 years ago

VinceG3 commented 7 years ago

Is there any way to turn off the alert boxes that get thrown up when it has a load error? I guess if it annoys me enough I'll figure out a way, and add a command line option.

fkchang commented 7 years ago

I can figure something out. It's easy to make it a run time option. I added the alerts because I getting load errors, but didn't know it, and it really messed me up because I kept expecting the changes to take effect - I didn't know the code being reloaded was bad. I suppose I can always log it, and make the alert optional (because I'm not always looking at the console, but I want to know when I'm hotloading bad code)

fkchang commented 7 years ago

So try master or 0.1.4. OpalHotReloader.alerts_off! should turn them off