mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
This commit is contained in:
parent
4f812bcf0c
commit
40945fc221
13 changed files with 50 additions and 21 deletions
|
|
@ -17,7 +17,7 @@ import {genEmptyElement, genSBElement} from "../../block/util";
|
|||
import {hideElements} from "../ui/hideElements";
|
||||
import {reloadProtyle} from "../util/reload";
|
||||
import {countBlockWord} from "../../layout/status";
|
||||
import {needSubscribe} from "../../util/needSubscribe";
|
||||
import {needLogin, needSubscribe} from "../../util/needSubscribe";
|
||||
|
||||
const removeTopElement = (updateElement: Element, protyle: IProtyle) => {
|
||||
// 移动到其他文档中,该块需移除
|
||||
|
|
@ -73,7 +73,8 @@ const promiseTransaction = () => {
|
|||
promiseTransaction();
|
||||
}
|
||||
/// #if MOBILE
|
||||
if ((0 !== window.siyuan.config.sync.provider || (0 === window.siyuan.config.sync.provider && !needSubscribe(""))) &&
|
||||
if (((0 !== window.siyuan.config.sync.provider && !needLogin("")) ||
|
||||
(0 === window.siyuan.config.sync.provider && !needSubscribe(""))) &&
|
||||
window.siyuan.config.repo.key && window.siyuan.config.sync.enabled) {
|
||||
document.getElementById("toolbarSync").classList.remove("fn__none");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue