fix incorrect API files

This commit is contained in:
Olivier Gagnon 2022-01-06 11:43:42 -05:00
parent def945e202
commit 1ac0d761e6
4 changed files with 12 additions and 10 deletions

12
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -430,7 +430,9 @@ export function initElectron(): void {
function initWebserver(): void {
(document as any).saveFile = function (filename: string, code: string): string {
if (removeLeadingSlash(filename).includes("/")) {
filename = filename.replace(/\/\/+/g, "/");
filename = removeLeadingSlash(filename);
if (filename.includes("/")) {
filename = "/" + removeLeadingSlash(filename);
}
code = Buffer.from(code, "base64").toString();