From afa1c6b29cb2263ca81866120b47876e458a3b5c Mon Sep 17 00:00:00 2001 From: Matthew Chambers Date: Wed, 24 Mar 2021 13:06:23 -0500 Subject: [PATCH] fix constant var path to be a var we can write to --- package.nw/lib/adif.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.nw/lib/adif.js b/package.nw/lib/adif.js index d6bd1a4a..16a4bda2 100644 --- a/package.nw/lib/adif.js +++ b/package.nw/lib/adif.js @@ -860,7 +860,7 @@ fileSelector.onchange = function () { if (this.files && this.files[0]) { - path = this.value.replace(this.files[0].name, ""); + let path = this.value.replace(this.files[0].name, ""); fileSelector.setAttribute("nwworkingdir", path); var reader = new FileReader(); @@ -904,7 +904,7 @@ startupFileSelector.onchange = function () g_startupLogs.push(newObject); localStorage.startupLogs = JSON.stringify(g_startupLogs); - path = this.value.replace(this.files[0].name, ""); + let path = this.value.replace(this.files[0].name, ""); startupFileSelector.setAttribute("nwworkingdir", path); setAdifStartup(loadAdifCheckBox);