Oh, it has to be a separate function.
This commit is contained in:
parent
9827c5f731
commit
2667dfd07e
@ -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;
|
||||
|
||||
overlay.addEventListener("mouseup", e => {
|
||||
if (e.target.tagName !== "DIV") return;
|
||||
if (e.button === 0) {
|
||||
function overlay_close() {
|
||||
overlay_content.children[0].remove();
|
||||
overlay.style.visibility = "hidden";
|
||||
g_scale = 1; } });
|
||||
g_scale = 1;
|
||||
}
|
||||
|
||||
overlay.addEventListener("mouseup", e => {
|
||||
if (e.target.tagName !== "DIV") return;
|
||||
if (e.button === 0) overlay_close(); });
|
||||
|
||||
|
||||
function determine_media_element(path) {
|
||||
|
Loading…
Reference in New Issue
Block a user