Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Conversation

@mxstbr
Copy link
Contributor

@mxstbr mxstbr commented May 31, 2018

The desktop app requests the same paths as the browser would, which
means previously it would also get the server-side rendered HTML.

The problem is that the server-side rendered frontend doesn't know that
it's being rendered for the desktop app, and thusly renders the standard
frontend, which looks crappy in the desktop app.

This patch disables server-side rendering enterily when a req from the
desktop app comes in, which fixes that issue.

Status

  • WIP
  • Ready for review
  • Needs testing

Deploy after merge (delete what needn't be deployed)

  • hyperion (frontend)

Maybe fixes #3210

The desktop app requests the same paths as the browser would, which
means previously it would also get the server-side rendered HTML.

The problem is that the server-side rendered frontend doesn't know that
it's being rendered for the desktop app, and thusly renders the standard
frontend, which looks crappy in the desktop app.

This patch disables server-side rendering enterily when a req from the
desktop app comes in, which fixes that issue.
@spectrum-bot
Copy link

spectrum-bot bot commented May 31, 2018

Warnings
⚠️

These modified files do not have Flow enabled:

  • config-overrides.js

Generated by 🚫 dangerJS

Copy link
Contributor

@brianlovin brianlovin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's give it a try!

@brianlovin brianlovin merged commit 862f1c0 into alpha May 31, 2018
@brianlovin brianlovin deleted the serve-client-side-for-desktop-app branch May 31, 2018 16:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Service worker persists after app update

3 participants