shorten when longer than 16 characters

This commit is contained in:
ReznoRMichael 2021-07-20 18:14:15 +02:00
parent 2c547cb1c7
commit 287a0a75c0
3 changed files with 3 additions and 3 deletions

View file

@ -6137,7 +6137,7 @@ document.getElementById("save-area-file").addEventListener("change", function (e
var fileName = event.target.files[0].name;
/* Shorten the file name if too long */
if (fileName.length > 17) {
if (fileName.length > 16) {
var begin = fileName.slice(0, 10); // take 10 characters from the beginning (0)
var end = fileName.slice(-4); // take 4 characters from the end (-)

File diff suppressed because one or more lines are too long

View file

@ -1131,7 +1131,7 @@ document.getElementById("save-area-file").addEventListener("change", (event) =>
var fileName = event.target.files[0].name;
/* Shorten the file name if too long */
if (fileName.length > 17) {
if (fileName.length > 16) {
let begin = fileName.slice(0, 10); // take 10 characters from the beginning (0)
let end = fileName.slice(-4); // take 4 characters from the end (-)