diff --git a/Compass QoL Enhancer.user.js b/Compass QoL Enhancer.user.js index 8b1e2ad..d9d49ab 100644 --- a/Compass QoL Enhancer.user.js +++ b/Compass QoL Enhancer.user.js @@ -2,7 +2,7 @@ // @name Compass QoL Enhancer // @namespace blankie-scripts // @match http*://*.compass.education/* -// @version 1.24.4 +// @version 1.24.5 // @author blankie // @description A userscript that adds small but useful features for Compass, such as the ability to close windows by clicking on the background // @inject-into page @@ -676,6 +676,11 @@ function getLearningTaskTab(panel) { }); } window.addEventListener("hashchange", function(event) { + // workaround window.onhashchange being ignored by window.addEventListener("hashchange", ...) + if (window.onhashchange) { + window.onhashchange(); + } + modifyUrlHash = false; let isActivityPage = window.location.pathname === "/Organise/Activities/Activity.aspx"; let hashSearch = getHashSearch();