mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
bcbd895303
commit
97f74ea172
3 changed files with 46 additions and 28 deletions
|
|
@ -196,11 +196,11 @@ export class Plugin {
|
|||
iconElement.setAttribute("data-location", options.position || "right");
|
||||
resizeTopBar();
|
||||
}
|
||||
if (isMobile()) {
|
||||
if (isMobile() && window.siyuan.storage) {
|
||||
if (!window.siyuan.storage[Constants.LOCAL_PLUGINTOPUNPIN].includes(iconElement.id)) {
|
||||
document.querySelector("#menuAbout")?.after(iconElement);
|
||||
}
|
||||
} else if (!isWindow()) {
|
||||
} else if (!isWindow() && window.siyuan.storage) {
|
||||
if (window.siyuan.storage[Constants.LOCAL_PLUGINTOPUNPIN].includes(iconElement.id)) {
|
||||
iconElement.classList.add("fn__none");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue