From 560a50485c92c42c7b8b7530f317c849537de77f Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Tue, 31 Oct 2023 04:45:33 -0700 Subject: [PATCH] Improve offline page Summary: The previous offline page suggested launching Flipper from terminal by running a command. Although this works, guidance can be simplified by just instructing users to launch Flipper from within the Applications folder. Reviewed By: aigoncharov Differential Revision: D50833741 fbshipit-source-id: 5a41090a66ee62c30cfc35edd69de51ed9cbbab9 --- desktop/static/offline.html | 42 +------------------------------- desktop/static/service-worker.js | 2 +- 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/desktop/static/offline.html b/desktop/static/offline.html index 975c29049..3792addc6 100644 --- a/desktop/static/offline.html +++ b/desktop/static/offline.html @@ -36,36 +36,6 @@ text-align: center; } - .console { - font-family: 'Fira Mono'; - width: 600px; - height: 250px; - box-sizing: border-box; - margin: auto; - } - - .console header { - border-top-left-radius: 15px; - border-top-right-radius: 15px; - background-color: #9254de; - height: 45px; - line-height: 45px; - text-align: center; - color: white; - } - - .console .consolebody { - border-bottom-left-radius: 15px; - border-bottom-right-radius: 15px; - box-sizing: border-box; - padding: 0px 10px; - height: calc(100% - 40px); - overflow: scroll; - background-color: #000; - color: white; - text-align: left; - } - input[type="submit"] { background-color: #9254de; color: white; @@ -107,17 +77,7 @@

Flipper will automatically reload once the connection is re-established.

-

If is taking a bit longer than it should, you can manually start Flipper.

-

From the terminal, please run:

- -
-
-

shell

-
-
-

> open -a 'Flipper' --args '--server'

-
-
+

Note: if is taking a bit longer than it should, you can manually start Flipper by launching it from the Applications folder.

diff --git a/desktop/static/service-worker.js b/desktop/static/service-worker.js index 7386d13fa..4bad5af54 100644 --- a/desktop/static/service-worker.js +++ b/desktop/static/service-worker.js @@ -8,7 +8,7 @@ // OFFLINE_VERSION is used as an update marker so that on subsequent installations // the newer version of the file gets updated. // eslint-disable-next-line header/header, no-unused-vars -const OFFLINE_VERSION = 1.1; +const OFFLINE_VERSION = 1.2; const CACHE_NAME = 'offline'; const OFFLINE_URL = 'offline.html';