From f04540f89ae14fd591811169a4ba813964351cd3 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 26 Jan 2023 10:55:59 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20v2.7.1-dev3=E8=A7=A3=E9=94=81=E5=A4=B1?= =?UTF-8?q?=E6=95=88=20Fix=20https://github.com/siyuan-note/siyuan/issues/?= =?UTF-8?q?7166?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/stage/auth.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/stage/auth.html b/app/stage/auth.html index bbb10d5a5..112505b45 100644 --- a/app/stage/auth.html +++ b/app/stage/auth.html @@ -86,9 +86,9 @@ } .b3-button--white:active { - background-color: var(--b3-theme-primary-lighter); - box-shadow: inset 0 0 0 1px var(--b3-theme-primary); - } + background-color: var(--b3-theme-primary-lighter); + box-shadow: inset 0 0 0 1px var(--b3-theme-primary); + } .b3-text-filed { width: 240px; @@ -200,7 +200,8 @@
- @@ -435,7 +436,7 @@ const exitApp = () => { try { const {ipcRenderer} = require('electron') - const {getCurrentWindow} = require('@electron/remote'); + const {getCurrentWindow} = require('@electron/remote') ipcRenderer.send('siyuan-quit', getCurrentWindow().id) } catch (e) { if ((window.webkit && window.webkit.messageHandlers) || window.JSAndroid) { @@ -529,7 +530,8 @@ } // 用于授权页保持连接,避免非常驻内存内核自动退出 https://github.com/siyuan-note/insider/issues/1099 - new WebSocket(`${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${window.location.host}/ws?app=siyuan&id=auth`) + new WebSocket( + window.location.protocol === 'https:' ? 'wss' : 'ws' + '://' + window.location.host + '/ws?app=siyuan&id=auth')