aboutsummaryrefslogtreecommitdiff
path: root/_wui/main.js
diff options
context:
space:
mode:
Diffstat (limited to '_wui/main.js')
-rw-r--r--_wui/main.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/_wui/main.js b/_wui/main.js
index e6d2a72..087b20a 100644
--- a/_wui/main.js
+++ b/_wui/main.js
@@ -1,6 +1,6 @@
"use strict";
var awwan = (() => {
- // _wui/wui/editor/editor.js
+ // _wui/wui/editor/editor.ts
var WUI_EDITOR_CLASS = "wui_editor";
var WUI_EDITOR_CLASS_LINE_NUMBER = "wui_editor_line_number";
var WUI_EDITOR_CLASS_CONTENT = "wui_editor_content";
@@ -76,9 +76,8 @@ var awwan = (() => {
this.elContent.setAttribute("contenteditable", "true");
this.elContent.setAttribute("spellcheck", "false");
this.elContent.addEventListener("paste", (ev) => {
- var _a;
ev.preventDefault();
- let text = ((_a = ev.clipboardData) === null || _a === void 0 ? void 0 : _a.getData("text/plain")) || "";
+ let text = ev.clipboardData?.getData("text/plain") || "";
if (!text) {
console.error(`on paste: text is ${text}`);
return;
@@ -204,7 +203,7 @@ var awwan = (() => {
}
};
- // _wui/wui/vfs/vfs.js
+ // _wui/wui/vfs/vfs.ts
var CLASS_VFS_PATH = "wui_vfs_path";
var CLASS_VFS_LIST = "wui_vfs_list";
var WuiVfs = class {