allow desktop app to be run if internal-apis fails
This commit is contained in:
parent
6b3e535100
commit
d0a9dc526b
2 changed files with 9 additions and 2 deletions
|
@ -869,5 +869,7 @@
|
|||
"contact support": "contact support",
|
||||
"Look what's %trending% or %discover%": "Look what's %trending% or %discover%",
|
||||
"Sorry, your request timed out. %again%": "Sorry, your request timed out. %again%",
|
||||
"If you continue to have issues, please %support%.": "If you continue to have issues, please %support%."
|
||||
}
|
||||
"If you continue to have issues, please %support%.": "If you continue to have issues, please %support%.",
|
||||
"lbry.tv Account": "lbry.tv Account",
|
||||
"Creating a lbry.tv account will allow you to earn rewards, receive content and security updates, and optionally backup your data.": "Creating a lbry.tv account will allow you to earn rewards, receive content and security updates, and optionally backup your data."
|
||||
}
|
|
@ -171,9 +171,14 @@ function App(props: Props) {
|
|||
}
|
||||
}, [syncError, pathname]);
|
||||
|
||||
// @if TARGET='web'
|
||||
// Require an internal-api user on lbry.tv
|
||||
// This also prevents the site from loading in the un-authed state while we wait for internal-apis to return for the first time
|
||||
// It's not needed on desktop since there is no un-authed state
|
||||
if (!user) {
|
||||
return null;
|
||||
}
|
||||
// @endif
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
Loading…
Reference in a new issue