Fixed replay import url
This commit is contained in:
parent
ca95c60562
commit
96fc6724c7
@ -14,10 +14,8 @@ export function App() {
|
|||||||
let pathReplayId = location.pathname.slice(1, location.pathname.length);
|
let pathReplayId = location.pathname.slice(1, location.pathname.length);
|
||||||
|
|
||||||
const loadReplay = async () => {
|
const loadReplay = async () => {
|
||||||
// TODO: Check for security?
|
await OsuRenderer.loadReplayFromUrl(`https://nise.moe/api/score/${pathReplayId}/replay`);
|
||||||
await OsuRenderer.loadReplayFromUrl(`http://localhost:8080/score/${pathReplayId}/replay`);
|
|
||||||
OsuRenderer.setPlaying(true);
|
OsuRenderer.setPlaying(true);
|
||||||
// await OsuRenderer.loadReplayFromUrl(`https://nise.moe/api/score/${pathReplayId}/replay`);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if(replayId !== pathReplayId) {
|
if(replayId !== pathReplayId) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user