Merge pull request #18898 from overleaf/jpa-no-window

[web] migrate from window attributes to getMeta

GitOrigin-RevId: 3dcf1ab6b01155e5e4abeb3e78d0fa9053e055bc
This commit is contained in:
Jakob Ackermann
2024-06-19 08:04:21 +00:00
committed by Copybot
parent 9b1c703f6b
commit aa480a2663
240 changed files with 1089 additions and 1126 deletions
@@ -54,7 +54,7 @@ export const Loading: FC<{
}
}, [projectJoined])
const LoadingScreenError = () => {
const getLoadingScreenError = (): string => {
if (connectionState.error) {
// NOTE: translations not ready yet
return connectionState.error === 'io-not-loaded'
@@ -82,9 +82,7 @@ export const Loading: FC<{
hasError={hasError}
/>
{hasError && (
<p className="loading-screen-error">
<LoadingScreenError />
</p>
<p className="loading-screen-error">{getLoadingScreenError()}</p>
)}
</div>
)