Adds invision script to prompt before reloading
This commit is contained in:
parent
b40c13d3f8
commit
30e612c58a
1 changed files with 7 additions and 0 deletions
7
config/dotjs/projects.invisionapp.com.js
Normal file
7
config/dotjs/projects.invisionapp.com.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
window.addEventListener( "beforeunload", (event)=>{
|
||||
// Cancel the event as stated by the standard.
|
||||
event.preventDefault();
|
||||
// Chrome requires returnValue to be set.
|
||||
event.returnValue = 'This is invision, not the site. Are you sure?';
|
||||
return 'This is invision, not the site. Are you sure?';
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue