Extend support for apple devices
Add option to specify special icons for apple devices because icons on apple devices are tailored to size differently
This commit is contained in:
@@ -13,12 +13,19 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="{{ PWA_APP_NAME }}">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
{% for icon in PWA_APP_ICONS %}
|
||||
<link rel="apple-touch-icon" href="{{ icon.src }}" sizes="{{ icon.size }}">
|
||||
{% endfor %}
|
||||
|
||||
{% if PWA_APP_ICONS_APPLE %}
|
||||
{% for icon in PWA_APP_ICONS_APPLE %}
|
||||
<link rel="apple-touch-icon" href="{{ icon.src }}" sizes="{{ icon.size }}">
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for icon in PWA_APP_ICONS %}
|
||||
<link rel="apple-touch-icon" href="{{ icon.src }}" sizes="{{ icon.size }}">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% for splash in PWA_APP_SPLASH_SCREEN%}
|
||||
{% for splash in PWA_APP_SPLASH_SCREEN %}
|
||||
<link href="{{ splash.src }}" media="{{ splash.media }}" rel="apple-touch-startup-image"/>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user