web: Update demo page

This commit is contained in:
Mike Welsh 2019-05-07 16:07:23 -07:00
parent 20844185d7
commit 14b6c59a3c
1 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,11 @@ localFileInput.addEventListener("change", localFileSelected, false);
let player;
if (window.location.search && window.location.search != "") {
loadRemoteFile(window.location.search.substr(1));
let urlParams = new URLSearchParams(window.location.search);
let url = urlParams.get("file");
if (url && url != "") {
loadRemoteFile(url);
}
}
function localFileSelected() {