From 75b23d5d0e5280ea4fce21236e72e23a7197eea5 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 15 May 2020 15:12:11 -0400 Subject: [PATCH] disable electron-cookies in dev mode --- ui/analytics.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/analytics.js b/ui/analytics.js index eb04b7540..1e6fc76f8 100644 --- a/ui/analytics.js +++ b/ui/analytics.js @@ -21,9 +21,11 @@ export const SHARE_INTERNAL = 'shareInternal'; const SHARE_THIRD_PARTY = 'shareThirdParty'; // @if TARGET='app' -ElectronCookies.enable({ - origin: 'https://lbry.tv', -}); +if (isProduction) { + ElectronCookies.enable({ + origin: 'https://lbry.tv', + }); +} // @endif type Analytics = {