remove leading slash when saving via http

This commit is contained in:
Olivier Gagnon 2021-12-23 12:22:28 -05:00
parent 0bddb7d349
commit fcb876695d
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -421,7 +421,7 @@ export function initElectron(): void {
function initWebserver(): void {
(document as any).saveFile = function (filename: string, code: string): string {
filename = removeLeadingSlash(filename);
// filename = removeLeadingSlash(filename);
console.log(code);
code = Buffer.from(code, "base64").toString();
console.log(code);