Skip to content

Commit eb5e4ed

Browse files
committed
🎨 Restore display of API token in browser environment #17978
1 parent 9cefb68 commit eb5e4ed

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

app/src/config/tabs/accessTab.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ import {renderPublishAuthAccounts, savePublish, sendAccessSetting, updatePublish
1313
import {sendAppSetting} from "./appRuntime";
1414

1515
const registerAccessAuthGroup = (tab: SettingTabBuilder) => {
16-
const hideOnWeb = isBrowser() && !isInMobileApp();
17-
if (hideOnWeb) {
18-
return;
19-
}
2016
const group = tab.group("authentication", window.siyuan.languages.authentication);
17+
const onWeb = isBrowser() && !isInMobileApp();
2118

22-
if (!window.siyuan.config.readonly) {
19+
if (!window.siyuan.config.readonly && !onWeb) {
2320
group.button({
2421
id: "authCode",
2522
title: window.siyuan.languages.about5,
@@ -29,7 +26,7 @@ const registerAccessAuthGroup = (tab: SettingTabBuilder) => {
2926
afterMount: mountAuthCodeButton,
3027
});
3128
}
32-
if (window.siyuan.config.accessAuthCode) {
29+
if (window.siyuan.config.accessAuthCode && !onWeb) {
3330
group.switch("system.lockScreenMode", {
3431
title: window.siyuan.languages.about7,
3532
desc: window.siyuan.languages.about8,

0 commit comments

Comments
 (0)