Detect local file based on file URL

This commit is contained in:
hensm
2018-07-20 01:47:34 +01:00
parent 0e4f47e3e5
commit 9f7bf780e5

View File

@@ -8,7 +8,7 @@ let session;
let currentMedia;
const isLocalFile = window.location.protocol === "file:";
const isLocalFile = srcUrl.startsWith("file:");
const mediaElement = isLocalFile
? document.querySelector("video, audio")