Are you sure you want to reload this page?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Are you sure you want to reload this page?

sebastianconcept
Hi there,

I'm used to nodemon and grunt watch to do livereload so...

I'm sure I want to get rid of that confirm in my development experience.

I've hacked helios/index.html to remove its unload observer but I couldn't find where is the observation/reaction of the unload of the app itself.

Surprisingly, searching the whole code for "Are you sure you want to reload this page?" and "onunload" and "onbeforeunload" didn't provide me hints about it

Do you know where is set?


--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Are you sure you want to reload this page?

sebastianconcept
Answering my own question:

This can get rid of it:

resetOnBeforeUnload

<window.onbeforeunload = nulll>



I'm still curious about where the handle is set, since a search on onbeforeunload do not reveal any clue for where the app sets that





On Monday, October 27, 2014 9:57:33 PM UTC-2, Sebastian Sastre wrote:
Hi there,

I'm used to nodemon and grunt watch to do livereload so...

I'm sure I want to get rid of that confirm in my development experience.

I've hacked helios/index.html to remove its unload observer but I couldn't find where is the observation/reaction of the unload of the app itself.

<a href="https://lh4.googleusercontent.com/-nIVD3zH4Exo/VE7beobTwYI/AAAAAAAABbA/gb1tMmb7eiM/s1600/Screen%2BShot%2B2014-10-27%2Bat%2B9.54.11%2BPM.png" style="margin-left:1em;margin-right:1em" target="_blank" onmousedown="this.href='https://lh4.googleusercontent.com/-nIVD3zH4Exo/VE7beobTwYI/AAAAAAAABbA/gb1tMmb7eiM/s1600/Screen%2BShot%2B2014-10-27%2Bat%2B9.54.11%2BPM.png';return true;" onclick="this.href='https://lh4.googleusercontent.com/-nIVD3zH4Exo/VE7beobTwYI/AAAAAAAABbA/gb1tMmb7eiM/s1600/Screen%2BShot%2B2014-10-27%2Bat%2B9.54.11%2BPM.png';return true;">

Surprisingly, searching the whole code for "Are you sure you want to reload this page?" and "onunload" and "onbeforeunload" didn't provide me hints about it

Do you know where is set?


--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.