| 1 | <script lang="ts"> |
| 2 | import { engineStale } from './engine-state'; |
| 3 | import { applyUpdate, updateReady } from './sw-register'; |
| 4 | </script> |
| 5 | |
| 6 | {#if $updateReady || $engineStale} |
| 7 | <div class="sec-banner" role="status"> |
| 8 | <span>Update ready</span> |
| 9 | <button type="button" on:click={applyUpdate}>Reload</button> |
| 10 | </div> |
| 11 | {/if} |