diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-16 11:22:15 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-16 11:22:15 +0700 |
| commit | f2b71ae4bf9d264d5c6ea51edc2d402e462e2033 (patch) | |
| tree | 5975b1e5bf5c39d4bcdc94424cf1c9ae38b8198c /_wui | |
| parent | c96e06ab3b4e49dfe5bdb501d3a621e7deba29be (diff) | |
| download | awwan-f2b71ae4bf9d264d5c6ea51edc2d402e462e2033.tar.xz | |
all: always load SSH config when running Play
In case awwan run with "serve" and we modify the ".ssh/config", the
changes does not detected by awwan because we only read ".ssh/config"
once we Awwan instance created.
This changes fix this issue by always loading SSH config everytime
the Play method executed so the user CLI and WUI has the same experiences.
Diffstat (limited to '_wui')
| -rw-r--r-- | _wui/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_wui/main.js b/_wui/main.js index 7fdcddf..da4cf8c 100644 --- a/_wui/main.js +++ b/_wui/main.js @@ -467,7 +467,7 @@ var awwan = (() => { var ID_VFS_PATH = "vfs_path"; var ID_OUTPUT = "output"; var ID_OUTPUT_WRAPPER = "output_wrapper"; - var MAX_FILE_SIZE = 3e6; + var MAX_FILE_SIZE = 102400; function renderHtml() { const el = document.createElement("div"); el.classList.add("awwan"); @@ -733,7 +733,7 @@ var awwan = (() => { message: "" }; if (node.size && node.size > MAX_FILE_SIZE) { - res2.message = `The file "${node.name}" with size ${node.size / 1e6}MB is greater than maximum ${MAX_FILE_SIZE / 1e6}MB.`; + res2.message = `The file "${node.name}" with size ${node.size / 1024}KB is greater than maximum ${MAX_FILE_SIZE / 1e3}KB.`; return res2; } res2.code = 200; |
