mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
PWA support (desktop & mobile) (#8012)
* 🎨 Improve return to feature of the auth page * 🎨 PWA support * Update manifest.webmanifest * 🎨 add `service-worker.js` * Update service-worker.js * Update service-worker.js * Update service-worker.js
This commit is contained in:
parent
e1d3789ced
commit
93e4bb1adf
17 changed files with 816 additions and 30 deletions
|
|
@ -9,7 +9,7 @@ import {getCurrentWindow} from "@electron/remote";
|
|||
/// #endif
|
||||
import {hideMessage, showMessage} from "./message";
|
||||
import {Dialog} from "./index";
|
||||
import {isMobile} from "../util/functions";
|
||||
import {isMobile, redirectToCheckAuth} from "../util/functions";
|
||||
import {confirmDialog} from "./confirmDialog";
|
||||
import {escapeHtml} from "../util/escape";
|
||||
import {getWorkspaceName} from "../util/noRelyPCFunction";
|
||||
|
|
@ -21,7 +21,7 @@ export const lockScreen = () => {
|
|||
}
|
||||
/// #if BROWSER
|
||||
fetchPost("/api/system/logoutAuth", {}, () => {
|
||||
window.location.href = `/check-auth?url=${window.location.href}`;
|
||||
redirectToCheckAuth();
|
||||
});
|
||||
/// #else
|
||||
ipcRenderer.send(Constants.SIYUAN_SEND_WINDOWS, {cmd: "lockscreen"});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue