Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions static/popup.js
Original file line number Diff line number Diff line change
@@ -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.