Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-02-24 02:32:05 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-02-24 02:32:05 +0300
commitc7926d0bc06f2ee712f6850ac58e0e37abc3b898 (patch)
tree1950c0bc94c46ea344635f2a164ba69b92c15fc7 /web/html
parent034bc5e22856fa760a1102417a988e17d2299b01 (diff)
[log] fix download format
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/xui/index.html b/web/html/xui/index.html
index 1c3132d6..90c45b85 100644
--- a/web/html/xui/index.html
+++ b/web/html/xui/index.html
@@ -325,7 +325,7 @@
</a-form-item>
<a-form-item style="float: right;">
<a-button type="primary" icon="download"
- :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs)" download="x-ui.log">
+ :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs.join('\n'))" download="x-ui.log">
</a-button>
</a-form-item>
</a-form>
@@ -457,7 +457,7 @@
const logModal = {
visible: false,
- logs: '',
+ logs: [],
rows: 20,
level: 'info',
syslog: false,