Merge branch 'fix-adif-loading' into 'master'

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

Closes #71

See merge request gridtracker.org/gridtracker!76
rich-presence
Matthew Chambers 2021-03-25 02:12:46 +00:00
commit d0b6c5de71
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);