1
0

Preparing for an initial release

This commit is contained in:
Zef Hemel
2022-06-28 14:14:15 +02:00
parent be92bf2311
commit 16fcd91d6c
73 changed files with 3205 additions and 20734 deletions
+2 -2
View File
@@ -21,9 +21,9 @@ export function spaceSyscalls(editor: Editor): SysCallMapping {
return await editor.space.writePage(name, text);
},
"space.deletePage": async (ctx, name: string) => {
// If we're deleting the current page, navigate to the start page
// If we're deleting the current page, navigate to the index page
if (editor.currentPage === name) {
await editor.navigate("start");
await editor.navigate("index");
}
// Remove page from open pages in editor
editor.openPages.delete(name);