Update web/templates/base.html
This commit is contained in:
parent
86c20d8c9b
commit
1f3fd62035
@ -6,6 +6,16 @@
|
|||||||
<title>{% block title %}Illustrations{% endblock %}</title>
|
<title>{% block title %}Illustrations{% endblock %}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="stylesheet" href="{% static 'app.css' %}">
|
<link rel="stylesheet" href="{% static 'app.css' %}">
|
||||||
|
|
||||||
|
<!-- === PWA additions (BEGIN) === -->
|
||||||
|
<link rel="manifest" href="/manifest.webmanifest">
|
||||||
|
<meta name="theme-color" content="#2f6cab">
|
||||||
|
<!-- iOS standalone when added to Home Screen -->
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||||
|
<link rel="apple-touch-icon" href="{% static 'pwa/icon-192.png' %}">
|
||||||
|
<!-- === PWA additions (END) === -->
|
||||||
|
|
||||||
{% block extra_head %}{% endblock %}
|
{% block extra_head %}{% endblock %}
|
||||||
<style>
|
<style>
|
||||||
:root{
|
:root{
|
||||||
@ -237,5 +247,15 @@
|
|||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- === PWA service worker registration (BEGIN) === -->
|
||||||
|
<script>
|
||||||
|
if ('serviceWorker' in navigator) {
|
||||||
|
window.addEventListener('load', function () {
|
||||||
|
navigator.serviceWorker.register('/service-worker.js').catch(console.error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<!-- === PWA service worker registration (END) === -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user