Skip to content

Commit

Permalink
Don't show update button on initial service worker install
Browse files Browse the repository at this point in the history
  • Loading branch information
icidasset committed Jun 6, 2022
1 parent 4c96c52 commit 4088ae1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Applications/UI/Other/State.elm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ import User.Layer exposing (..)

installedServiceWorker : Manager
installedServiceWorker model =
Return.singleton { model | serviceWorkerStatus = WaitingForActivation }
case model.serviceWorkerStatus of
InstallingNew ->
Return.singleton { model | serviceWorkerStatus = WaitingForActivation }

_ ->
Return.singleton { model | serviceWorkerStatus = Activated }


installingServiceWorker : Manager
Expand Down

0 comments on commit 4088ae1

Please sign in to comment.