This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ('serviceWorker' in navigator) { | |
| window.addEventListener('load', async function() { | |
| const registration = await navigator.serviceWorker.register('/service-worker.js'); | |
| if (registration.waiting && registration.active) { | |
| // The page has been loaded when there's already a waiting and active SW. | |
| // This would happen if skipWaiting isn't being called, and there are | |
| // still old tabs open. | |
| console.log('Please close all tabs to get updates.'); | |
| } else { | |
| // updatefound is also fired for the very first install. ¯\_(ツ)_/¯ |
-
The status bar in iOS 7 is transparent, the view behind it shows through.
-
The style of the status bar refers to the appearances of its content. In iOS 7, the status bar content is either dark (
UIStatusBarStyleDefault) or light (UIStatusBarStyleLightContent). BothUIStatusBarStyleBlackTranslucentandUIStatusBarStyleBlackOpaqueare deprecated in iOS 7.0. UseUIStatusBarStyleLightContentinstead.
- If below the status bar is a navigation bar, the status bar style will be adjusted to match the navigation bar style (
UINavigationBar.barStyle):