mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
feat(client/print): don't connect to websocket
This commit is contained in:
@@ -304,6 +304,8 @@ async function sendPing() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if (glob.device === "print") return;
|
||||||
|
|
||||||
ws = connectWebSocket();
|
ws = connectWebSocket();
|
||||||
|
|
||||||
lastPingTs = Date.now();
|
lastPingTs = Date.now();
|
||||||
|
|||||||
2
apps/client/src/types.d.ts
vendored
2
apps/client/src/types.d.ts
vendored
@@ -16,7 +16,7 @@ interface ElectronProcess {
|
|||||||
interface CustomGlobals {
|
interface CustomGlobals {
|
||||||
isDesktop: typeof utils.isDesktop;
|
isDesktop: typeof utils.isDesktop;
|
||||||
isMobile: typeof utils.isMobile;
|
isMobile: typeof utils.isMobile;
|
||||||
device: "mobile" | "desktop";
|
device: "mobile" | "desktop" | "print";
|
||||||
getComponentByEl: typeof appContext.getComponentByEl;
|
getComponentByEl: typeof appContext.getComponentByEl;
|
||||||
getHeaders: typeof server.getHeaders;
|
getHeaders: typeof server.getHeaders;
|
||||||
getReferenceLinkTitle: (href: string) => Promise<string>;
|
getReferenceLinkTitle: (href: string) => Promise<string>;
|
||||||
|
|||||||
Reference in New Issue
Block a user