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
webdiff listens for the onbeforeunload event and kills the web server when it fires. This usually corresponds to closing the web server, so this behavior makes sense. But if you reload, the event also fires and the reload will fail.
A solution might be to wait 0.5 seconds before killing the server.
The text was updated successfully, but these errors were encountered:
Sure -- run git webdiff to open up a diff tab in your browser. Now hit ⌘R to reload the tab. The server has shut down because it thought you closed the tab.
This is going to be quite challenging w/o switching away from the Flask dev server. werkzeug.server.shutdown has to be called from a request handler to do anything, and request handlers must be synchronous w/ the dev server. See this Q/A for details.
webdiff
listens for theonbeforeunload
event and kills the web server when it fires. This usually corresponds to closing the web server, so this behavior makes sense. But if you reload, the event also fires and the reload will fail.A solution might be to wait 0.5 seconds before killing the server.
The text was updated successfully, but these errors were encountered: