Way to turn off "Are you sure you want to leave"

In the MW extension SnapProjectEmbed, we have run into an issue. Embedded projects stop you from closing the tab easily, because of the message. Is there a URL flag that we can turn this off with? If not, can you point us to the code for this, and we can possibly PR.
Thank you so much!
cc @jens

the url switch is `noExitWarning``

e.g

http://snap.berkeley.edu/run#noExitWarning

Is that what you're looking for?

That would be what I want, except it doesn't seem to work. When I try to close the tab, I get image

Actually, that did work for me. :thinking:

Oh, I keep mixing up funny symbols, try using the ampersand instead:

http://snap.berkeley.edu/run&noExitWarning

is that any better?

when I go there, I get redirected to https://snap.berkeley.edu/snap/snap.html

#noExitWarning puts Autofocus processing was blocked because a document's URL has a fragment '#noExitWarning'. in the console, but I still get the warning.

No, actually it's the first one: http://snap.berkeley.edu/run&noExitWarning

That does not work. I get redirected to snap/snap.html which throws me an error 404 when I add &noExitWarning.

That doesn't work for me.

it's https

It is still the same. (And the protocol was automatically changed.)

okay, maybe it only works together with loading a project, example:

https://snap.berkeley.edu/snap/snap.html#present:Username=jens&ProjectName=Fake%203D&editMode&noRun&noExitWarning

Your problem was that the ampersand was supposed to be a question mark if it was the 1st query string.
That's why that works.

Ah, yes, I keep mixing up magic syntax :slight_smile:

Yep! This can be closed now!