bug fixes

This commit is contained in:
maru21 2023-10-15 00:25:36 +02:00
parent 1f89f0625a
commit 71b2186171
3 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@
//settings
window.settings = {
lineBreak: 100,
lineBreak: 200,
localOnly: true,
};

View File

@ -1,4 +1,4 @@
import { hideMenus, showMenu, showSidebar, showTextBlocks, clickSetForm, clickImportFiles } from "./evts.js";
import { hideMenus, showMenu, showSidebar, showTextBlocks, clickSetForm, clickImportFiles, modalNotifier } from "./evts.js";
import { buildFile } from "./files.js";
import setPassword, { passwordHash, sessionVerification } from "./scripts.js";
import { getUsrId, logout } from "./scripts.js";
@ -139,6 +139,7 @@ window.addEventListener("keydown", (e) => {
if (activeState.activePage == "form");
createStorageObj();
parseFormOnSubmit();
modalNotifier("File copied to clipboard", 1);
e.preventDefault();
}
})

View File

@ -352,7 +352,7 @@ function parseFormOnSubmit(returnJSON = false, parseOnly = false) {
let intendationSpaces = '';
//check if an intendation is given if so convert it to correct spaces
if (intendation != 0) intendationSpaces = ' '.repeat(intendation+1);
if (intendation != 0) intendationSpaces = ' '.repeat(intendation);
//start loop to parse rest of the string
while(line.length > lineBreak) {