From a0f4bf7830affb8120e0224c0c35eacb6969d5f5 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 24 Oct 2019 13:37:26 -0400 Subject: [PATCH] only set header if authToken exists --- src/ui/index.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/index.jsx b/src/ui/index.jsx index 2b2b3b8fa..75eeee1b0 100644 --- a/src/ui/index.jsx +++ b/src/ui/index.jsx @@ -110,7 +110,11 @@ Lbryio.setOverride( // @endif // @if TARGET='web' const authToken = getAuthToken(); - Lbry.setApiHeader(X_LBRY_AUTH_TOKEN, authToken); + + if (authToken) { + Lbry.setApiHeader(X_LBRY_AUTH_TOKEN, authToken); + } + resolve(authToken); // @endif }