aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/views/layouts
diff options
context:
space:
mode:
authorMarvin Borner2018-07-14 16:57:30 +0200
committerMarvin Borner2018-07-14 16:57:30 +0200
commitc4654913a951e0fc9835367617ceed8827b10108 (patch)
tree139c235243e44eba99f5aa0f201341548e3dd556 /resources/views/layouts
parent012632c1bb9899eeb9fbddbbcf743e95b1322548 (diff)
Replaced bower modules with node_modules (less spam)
Diffstat (limited to 'resources/views/layouts')
-rwxr-xr-xresources/views/layouts/app.blade.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index f20d74a..2d8b36c 100755
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -20,6 +20,9 @@
<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
+
+ <!-- Manifests -->
+ <link rel="manifest" href="/manifest.json">
</head>
<body>
@@ -84,6 +87,18 @@
</div>
{{ csrf_field() }}
+
+ <script>
+ if ('serviceWorker' in navigator) {
+ window.addEventListener("load", function(){
+ navigator.serviceWorker.register('service-worker.js').then(function (registration) {
+ console.log('ServiceWorker registration successful with scope:', registration.scope);
+ }, function (err) {
+ console.log('ServiceWorker failed:', err);
+ });
+ });
+ }
+ </script>
</body>
</html> \ No newline at end of file