From 71b2186171d803319b8fc2e2049ef3ee7d98029b Mon Sep 17 00:00:00 2001 From: maru21 Date: Sun, 15 Oct 2023 00:25:36 +0200 Subject: [PATCH] bug fixes --- index.html | 2 +- js/9.9.8/init.js | 3 ++- js/9.9.8/parseForm.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index f98149c..d19b562 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ //settings window.settings = { - lineBreak: 100, + lineBreak: 200, localOnly: true, }; diff --git a/js/9.9.8/init.js b/js/9.9.8/init.js index 669fa6e..d3cf330 100644 --- a/js/9.9.8/init.js +++ b/js/9.9.8/init.js @@ -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(); } }) diff --git a/js/9.9.8/parseForm.js b/js/9.9.8/parseForm.js index 71dfdda..9e15aa3 100644 --- a/js/9.9.8/parseForm.js +++ b/js/9.9.8/parseForm.js @@ -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) {