fix app icons

This commit is contained in:
Erik Römmelt 2019-02-11 15:40:19 +01:00
parent 2a5f627c38
commit 590bd9dc45
3 changed files with 9 additions and 10 deletions

View File

@ -28,14 +28,14 @@
<!-- Hide Safari UI Components -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- iOS Status bar: black or black-translucent -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- iOS App Name next to Icon -->
<meta name="apple-mobile-web-app-title" content="OHM News">
<!-- Icon: No transparency allowed -->
<link rel="apple-touch-icon" href="img/launcher/launcher_app_icon_192.png"> <!-- iphone -->
<link rel="apple-touch-icon" sizes="152x152" href="img/launcher/launcher_app_icon_152.png"><!-- ipad -->
<link rel="apple-touch-icon" sizes="180x180" href="img/launcher/launcher_app_icon_180.png"><!-- iphone-retina -->
<link rel="apple-touch-icon" sizes="167x167" href="img/launcher/launcher_app_icon_167.png"><!-- ipad-retina -->
<link rel="apple-touch-icon" href="img/launcher/ios_launcher_app_icon_192.png"> <!-- iphone -->
<link rel="apple-touch-icon" sizes="152x152" href="img/launcher/ios_launcher_app_icon_152.png"><!-- ipad -->
<link rel="apple-touch-icon" sizes="180x180" href="img/launcher/ios_launcher_app_icon_180.png"><!-- iphone-retina -->
<link rel="apple-touch-icon" sizes="167x167" href="img/launcher/ios_launcher_app_icon_167.png"><!-- ipad-retina -->
<!-- Splash screen: If not set, will be white screen -->
<link rel="apple-touch-startup-image" sizes="2048x2732" href="ios-splash/apple_splash_2048.png" /><!-- Tablet -->
<link rel="apple-touch-startup-image" sizes="1668x2224"href="ios-splash/apple_splash_1668.png" /><!-- Tablet -->

View File

@ -3,12 +3,12 @@
"name": "OHM News",
"icons": [
{
"src":"img/launcher/launcher_app_icon_192.png",
"src":"img/launcher/android_launcher_app_icon_192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src":"img/launcher/launcher_app_icon_512.png",
"src":"img/launcher/android_launcher_app_icon_512.png",
"type": "image/png",
"sizes": "512x512"
}

View File

@ -110,7 +110,7 @@ self.addEventListener('activate', event => {
self.addEventListener('fetch', event => {
// Provide HTTPS URL for query data.
//const postMsgURL = 'https://me.efi.th-nuernberg.de/om/api/createMsg';
const postMsgURL = 'http://localhost:8013/api/createMsg';
//const postMsgURL = 'http://localhost:8013/api/createMsg';
/* We should only cache GET requests, and deal with the rest of method in the
client-side, by handling failed POST,PUT,PATCH,etc. requests. */
@ -133,7 +133,6 @@ self.addEventListener('fetch', event => {
const networkPromise = fetch(requestURL);
const cachedResponse = await caches.match(event.request);
if (cachedResponse) return cachedResponse;
const networkResponse = await networkPromise;
// Check if response is valid, status is 200, response type is basic
@ -147,12 +146,12 @@ self.addEventListener('fetch', event => {
// be read once. Placing a response in the cache counts as a read.
cache.put(event.request, networkResponse.clone());
if (cachedResponse) return cachedResponse;
console.log('[ServiceWorker] Fetch', event.request);
return networkResponse;
} catch (err) {
// Report a lack of connectivity to the user.
console.log('No Network connection: ',err);
return cachedResponse;
}
}());
});