aboutsummaryrefslogtreecommitdiff
path: root/editor/editor.ts
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-08-30 10:07:58 +0700
committerShulhan <ms@kilabit.info>2021-08-30 10:07:58 +0700
commit57922f603f6acdfbd54c610279ab024c73d7650d (patch)
treed3f4ec269cb9c89246c4acb8876f96b7ecbdde8b /editor/editor.ts
parent7dcf086fe48f7a1690122418b7f7108e7be9c6a2 (diff)
downloadpakakeh.ts-57922f603f6acdfbd54c610279ab024c73d7650d.tar.xz
editor: fix example converting the content to base64
Diffstat (limited to 'editor/editor.ts')
-rw-r--r--editor/editor.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor.ts b/editor/editor.ts
index fe73050..20afdf1 100644
--- a/editor/editor.ts
+++ b/editor/editor.ts
@@ -337,7 +337,7 @@ export class WuiEditor {
Open(node: WuiVfsNodeInterface): void {
this.active_file = node
- let content = atob(node.content || "")
+ let content = atob(node.content)
content = content.replace("\r\n", "\n")
this.raw_lines = content.split("\n")