Skip to content

Commit

Permalink
Change CDN address
Browse files Browse the repository at this point in the history
  • Loading branch information
starscouts committed Dec 27, 2024
1 parent c589231 commit d61774e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ window.versionTitle = document.getElementById("versions-title");
window.originalTitle = document.title;

window.onload = async () => {
window.files = await (await fetch("https://watercolor-cdn.floo.fi/records/directory.json")).json();
window.files = await (await fetch("https://cdn.floo.fi/watercolor/records/directory.json")).json();
window.filesProcessed = [];

for (let _file of Object.values(files)) {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ window.onhashchange = window.processHash = () => {
}
window.playerTitle.innerText = document.title = version.artist + " - " + version.track +
(version.edition.length > 0 ? " (" + version.edition.join(", ") + ")" : "") + " [" + version.year + "]";
window.player.initialize(window.playerAudio, "https://watercolor-cdn.floo.fi/records/" + version['cdnId'] + "/stream_dash.mpd", true);
window.player.initialize(window.playerAudio, "https://cdn.floo.fi/watercolor/records/" + version['cdnId'] + "/stream_dash.mpd", true);
window.playerAudio.play();
window.playerModal.classList.add("show");
}
Expand Down
2 changes: 1 addition & 1 deletion engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async fn get_directory() -> Directory {
opts.set_method("GET");
opts.set_mode(RequestMode::Cors);

let request = Request::new_with_str_and_init("https://watercolor-cdn.floo.fi/records/directory.json", &opts)
let request = Request::new_with_str_and_init("https://cdn.floo.fi/watercolor/records/directory.json", &opts)
.unwrap();

let window = web_sys::window().unwrap();
Expand Down

0 comments on commit d61774e

Please sign in to comment.