fix constant var path to be a var we can write to

merge-requests/76/head v1.21.0324-rc1
Matthew Chambers 2021-03-24 13:06:23 -05:00
rodzic 8172febc50
commit afa1c6b29c
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);