diff --git a/static/popup.js b/static/popup.js new file mode 100644 index 00000000..57a5249d --- /dev/null +++ b/static/popup.js @@ -0,0 +1,6 @@ +window.addEventListener("beforeunload", function (e) { + e.preventDefault(); + e.returnValue = ''; +}); +/* this script prevents the goguardian scene from automatically closing this to the "Hey there! you're teacher doesn't want you to browse right now." message popup +/*, which means the user can still use this website without any issue.