From bcd32d44e9a6b3405f42e78e95c8d91f52fbbb4f Mon Sep 17 00:00:00 2001 From: takumi9942 Date: Mon, 1 Jun 2020 23:54:02 +0900 Subject: [PATCH] fix: sidebar base64 decode (#1975) --- client/themes/default/components/page.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/themes/default/components/page.vue b/client/themes/default/components/page.vue index 492803d8..e6957202 100644 --- a/client/themes/default/components/page.vue +++ b/client/themes/default/components/page.vue @@ -473,10 +473,10 @@ export default { } }, sidebarDecoded () { - return JSON.parse(atob(this.sidebar)) + return JSON.parse(Buffer.from(this.sidebar, 'base64').toString()) }, tocDecoded () { - return JSON.parse(atob(this.toc)) + return JSON.parse(Buffer.from(this.toc, 'base64').toString()) } }, created() {