fix double data loading
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m20s

This commit is contained in:
Lee 2024-04-25 20:08:41 +01:00
parent c0d2781fd0
commit ddaa1e7c97

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name ScoreSaber Utils // @name ScoreSaber Utils
// @namespace https://ssu.fascinated.cc // @namespace https://ssu.fascinated.cc
// @version 1.0.3 // @version 1.0.4
// @description Useful additions to ScoreSaber! // @description Useful additions to ScoreSaber!
// @author Fascinated // @author Fascinated
// @match https://scoresaber.com/* // @match https://scoresaber.com/*
@ -109,8 +109,6 @@ async function loadPlayerData(path) {
loadingElement.remove(); loadingElement.remove();
} }
loadPlayerData();
// Watch for URL changes // Watch for URL changes
let previousUrl = ""; let previousUrl = "";
const observer = new MutationObserver(function (mutations) { const observer = new MutationObserver(function (mutations) {