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">
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('/service-worker.js')
|
||||
navigator.serviceWorker.register('/sw.js')
|
||||
.then(function(registration) {
|
||||
console.log('Service Worker registered with scope:', registration.scope);
|
||||
}).catch(function(err) {
|
||||
console.log('Service Worker registration failed:', err);
|
||||
});
|
||||
}
|
||||
</script> --}}
|
||||
</script>
|
||||
|
||||
{{-- <!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
@@ -65,7 +65,7 @@
|
||||
</body>
|
||||
</html> --}}
|
||||
|
||||
<!DOCTYPE html>
|
||||
{{-- <!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
@@ -84,6 +84,6 @@
|
||||
|
||||
<script src="{{ mix('js/app.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html> --}}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user