diff --git a/config/dotjs/projects.invisionapp.com.js b/config/dotjs/projects.invisionapp.com.js new file mode 100644 index 00000000..a1ec2a75 --- /dev/null +++ b/config/dotjs/projects.invisionapp.com.js @@ -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?'; +} );