Enable PWA support by un-commenting manifest link and updating service worker registration path
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
{{-- <link rel="manifest" href="{{ asset('manifest.json') }}">
|
<link rel="manifest" href="{{ asset('manifest.json') }}">
|
||||||
<meta name="theme-color" content="#007bff">
|
<meta name="theme-color" content="#007bff">
|
||||||
<script>
|
<script>
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
navigator.serviceWorker.register('/service-worker.js')
|
navigator.serviceWorker.register('/sw.js')
|
||||||
.then(function(registration) {
|
.then(function(registration) {
|
||||||
console.log('Service Worker registered with scope:', registration.scope);
|
console.log('Service Worker registered with scope:', registration.scope);
|
||||||
}).catch(function(err) {
|
}).catch(function(err) {
|
||||||
console.log('Service Worker registration failed:', err);
|
console.log('Service Worker registration failed:', err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script> --}}
|
</script>
|
||||||
|
|
||||||
{{-- <!DOCTYPE html>
|
{{-- <!DOCTYPE html>
|
||||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
</body>
|
</body>
|
||||||
</html> --}}
|
</html> --}}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
{{-- <!DOCTYPE html>
|
||||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@@ -84,6 +84,6 @@
|
|||||||
|
|
||||||
<script src="{{ mix('js/app.js') }}"></script>
|
<script src="{{ mix('js/app.js') }}"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html> --}}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user