1
0

Oh, it has to be a separate function.

This commit is contained in:
Alexander Andreev 2022-09-20 04:28:29 +04:00
parent 9827c5f731
commit 2667dfd07e
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -22,12 +22,15 @@ const file_links = Array.from(document.getElementsByTagName("tbody")[0].children
if (localStorage.getItem('audio_volume') == null)
localStorage['audio_volume'] = 0.5;
function overlay_close() {
overlay_content.children[0].remove();
overlay.style.visibility = "hidden";
g_scale = 1;
}
overlay.addEventListener("mouseup", e => {
if (e.target.tagName !== "DIV") return;
if (e.button === 0) {
overlay_content.children[0].remove();
overlay.style.visibility = "hidden";
g_scale = 1; } });
if (e.button === 0) overlay_close(); });
function determine_media_element(path) {