Add final line ending to downloaded moves

This commit is contained in:
Juhani Krekelä 2021-01-11 01:30:01 +02:00
parent e9d6434c88
commit 575c2c9b63
1 changed files with 2 additions and 1 deletions

View File

@ -760,7 +760,8 @@
file.push(line);
}
let contents = encodeURIComponent(file.join("\n"));
// Include final \n since we're doing unix-style line endings (instead of line separators)
let contents = encodeURIComponent(file.join("\n") + "\n");
link.setAttribute("href", "data:text/plain;charset=utf-8," + contents);
link.click();