mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
aa5f5ddc5f
commit
35853cfedb
5 changed files with 36 additions and 20 deletions
|
|
@ -451,12 +451,12 @@ ${response.data.replace("%pages", "<span class=totalPages></span>").replace("%pa
|
|||
/// #else
|
||||
if (!isWindow()) {
|
||||
document.querySelector(".toolbar").classList.add("toolbar--browser");
|
||||
window.addEventListener("beforeunload", () => {
|
||||
exportLayout(false);
|
||||
}, false);
|
||||
window.addEventListener("pagehide", () => {
|
||||
exportLayout(false);
|
||||
}, false);
|
||||
}
|
||||
window.addEventListener("beforeunload", () => {
|
||||
exportLayout(false);
|
||||
}, false);
|
||||
window.addEventListener("pagehide", () => {
|
||||
exportLayout(false);
|
||||
}, false);
|
||||
/// #endif
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue