1
0
forked from poc/pds

Enable PWA support by un-commenting manifest link and updating service worker registration path

This commit is contained in:
dhanabalan
2025-11-04 14:19:38 +05:30
parent 15c2a80b3b
commit e729742aa3

View File

@@ -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> --}}