From 9394f4f5400c7afe76d89f8660d8a6bef758a033 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Wed, 28 Oct 2020 22:47:57 +0900
Subject: [PATCH] Fix error dialog

---
 src/client/components/post-form.vue | 2 +-
 src/client/os.ts                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue
index 0481691be9..2eb807af5a 100644
--- a/src/client/components/post-form.vue
+++ b/src/client/components/post-form.vue
@@ -564,7 +564,7 @@ export default defineComponent({
 				this.posting = false;
 				os.dialog({
 					type: 'error',
-					text: err.message + '<br>' + (err as any).id,
+					text: err.message + '\n' + (err as any).id,
 				});
 			});
 		},
diff --git a/src/client/os.ts b/src/client/os.ts
index b709fe5933..d26f2676d0 100644
--- a/src/client/os.ts
+++ b/src/client/os.ts
@@ -75,7 +75,7 @@ export function apiWithDialog(
 	promiseDialog(promise, onSuccess, onFailure ? onFailure : (e) => {
 		dialog({
 			type: 'error',
-			text: e.message + '<br>' + (e as any).id,
+			text: e.message + '\n' + (e as any).id,
 		});
 	});