From 2ee7438faa18c049c2998cd83c7bdc9abffe2c2d Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Sun, 17 Apr 2022 01:21:19 +0100 Subject: [PATCH] Use a persistent session for web services This means data saved using standard web APIs (e.g. localStorage, HTTP cookies) is saved across reloads. --- src/app/main/webservices.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main/webservices.ts b/src/app/main/webservices.ts index 8c3e44f..8c6f86b 100644 --- a/src/app/main/webservices.ts +++ b/src/app/main/webservices.ts @@ -10,7 +10,7 @@ import type { NativeShareRequest, NativeShareUrlRequest } from '../preload-webse const debug = createDebug('app:main:webservices'); export function createWebServiceWindow(nsa_id: string, webservice: WebService) { - const browser_session = session.fromPartition('webservices-' + nsa_id, { + const browser_session = session.fromPartition('persist:webservices-' + nsa_id, { cache: false, });