bug fixes
This commit is contained in:
parent
1f89f0625a
commit
71b2186171
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
//settings
|
//settings
|
||||||
window.settings = {
|
window.settings = {
|
||||||
lineBreak: 100,
|
lineBreak: 200,
|
||||||
localOnly: true,
|
localOnly: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -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 { buildFile } from "./files.js";
|
||||||
import setPassword, { passwordHash, sessionVerification } from "./scripts.js";
|
import setPassword, { passwordHash, sessionVerification } from "./scripts.js";
|
||||||
import { getUsrId, logout } from "./scripts.js";
|
import { getUsrId, logout } from "./scripts.js";
|
||||||
@ -139,6 +139,7 @@ window.addEventListener("keydown", (e) => {
|
|||||||
if (activeState.activePage == "form");
|
if (activeState.activePage == "form");
|
||||||
createStorageObj();
|
createStorageObj();
|
||||||
parseFormOnSubmit();
|
parseFormOnSubmit();
|
||||||
|
modalNotifier("File copied to clipboard", 1);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -352,7 +352,7 @@ function parseFormOnSubmit(returnJSON = false, parseOnly = false) {
|
|||||||
|
|
||||||
let intendationSpaces = '';
|
let intendationSpaces = '';
|
||||||
//check if an intendation is given if so convert it to correct spaces
|
//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
|
//start loop to parse rest of the string
|
||||||
while(line.length > lineBreak) {
|
while(line.length > lineBreak) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user