Fixed replay import url

This commit is contained in:
nise.moe 2024-03-03 16:22:40 +01:00
parent ca95c60562
commit 96fc6724c7

View File

@ -14,10 +14,8 @@ export function App() {
let pathReplayId = location.pathname.slice(1, location.pathname.length);
const loadReplay = async () => {
// TODO: Check for security?
await OsuRenderer.loadReplayFromUrl(`http://localhost:8080/score/${pathReplayId}/replay`);
await OsuRenderer.loadReplayFromUrl(`https://nise.moe/api/score/${pathReplayId}/replay`);
OsuRenderer.setPlaying(true);
// await OsuRenderer.loadReplayFromUrl(`https://nise.moe/api/score/${pathReplayId}/replay`);
};
if(replayId !== pathReplayId) {