Skip to content

Commit

Permalink
🎨 Remove the access authorization code setting item on the browser-end
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 2, 2023
1 parent 279e17e commit 3d7bf2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/config/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const about = {
<div class="fn__space"></div>
<input class="b3-switch fn__flex-center" id="networkServe" type="checkbox"${window.siyuan.config.system.networkServe ? " checked" : ""}>
</label>
<div class="b3-label">
<div class="b3-label${(window.siyuan.config.readonly || isBrowser()) ? " fn__none" : ""}">
<label class="fn__flex">
<div class="fn__flex-1">
${window.siyuan.languages.about5}
Expand Down
3 changes: 2 additions & 1 deletion app/src/mobile/settings/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {exitSiYuan, processSync} from "../../dialog/processSystem";
import {pathPosix} from "../../util/pathName";
import {openModel} from "../menu/model";
import {setKey} from "../../sync/syncGuide";
import {isBrowser} from "../../util/functions";

export const initAbout = () => {
if (!window.siyuan.config.localIPs || window.siyuan.config.localIPs.length === 0 ||
Expand Down Expand Up @@ -39,7 +40,7 @@ export const initAbout = () => {
<div class="fn__hr"></div>
<div class="b3-label__text">${window.siyuan.languages.about18}</div>
</div>
<div class="b3-label${window.siyuan.config.readonly ? " fn__none" : ""}">
<div class="b3-label${(window.siyuan.config.readonly || isBrowser()) ? " fn__none" : ""}">
${window.siyuan.languages.about5}
<div class="fn__hr"></div>
<button class="b3-button b3-button--outline fn__block" id="authCode">
Expand Down

0 comments on commit 3d7bf2e

Please sign in to comment.