From ccbd47e03df415608f71431bef01024132109a64 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Mon, 3 Feb 2025 01:09:01 +0200 Subject: [PATCH] desktop app: use a custom user agent string --- electron.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electron.ts b/electron.ts index 154ec38d4..dc93e6688 100644 --- a/electron.ts +++ b/electron.ts @@ -26,6 +26,8 @@ electronDl({ saveAs: true }); // needed for excalidraw export https://github.com/zadam/trilium/issues/4271 electron.app.commandLine.appendSwitch("enable-experimental-web-platform-features"); +electron.app.userAgentFallback = `${electron.app.getName()} ${electron.app.getVersion()}`; + // Quit when all windows are closed, except on macOS. There, it's common // for applications and their menu bar to stay active until the user quits // explicitly with Cmd + Q.