only set header if authToken exists
This commit is contained in:
parent
034cef3ed7
commit
a0f4bf7830
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue