From fd0459c35220e97054fb0ec02b708f3153f46f1d Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 14 Jan 2019 15:00:06 +0100 Subject: [PATCH] Update ServerFolders.plugin.js --- Plugins/ServerFolders/ServerFolders.plugin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/ServerFolders/ServerFolders.plugin.js b/Plugins/ServerFolders/ServerFolders.plugin.js index 9a0ec7bee8..be778b489e 100644 --- a/Plugins/ServerFolders/ServerFolders.plugin.js +++ b/Plugins/ServerFolders/ServerFolders.plugin.js @@ -3,7 +3,7 @@ class ServerFolders { getName () {return "ServerFolders";} - getVersion () {return "6.0.0";} + getVersion () {return "6.0.1";} getAuthor () {return "DevilBro";} @@ -530,9 +530,9 @@ class ServerFolders { BDFDB.appendModal(folderSettingsModal); - BDFDB.addChildEventListener(folderSettingsModal, "change", "input[type='file'][option]", () => { - let file = ele.files[0]; - if (file) this.fetchCustomIcon(folderSettingsModal, ele.getAttribute("option")); + BDFDB.addChildEventListener(folderSettingsModal, "change", "input[type='file'][option]", e => { + let file = e.currentTarget.files[0]; + if (file) this.fetchCustomIcon(folderSettingsModal, e.currentTarget.getAttribute("option")); }); BDFDB.addChildEventListener(folderSettingsModal, "keyup", "input[type='text'][option]", e => { if (e.which == 13) this.fetchCustomIcon(folderSettingsModal, e.currentTarget.getAttribute("option"));