Skip to content

Commit

Permalink
Display notice if JavaScript is disabled (#1796)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt authored Nov 24, 2024
1 parent b96bad2 commit 01368dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
</head>

<body>
<noscript>
We're sorry but Sharezone doesn't work properly without JavaScript enabled. Please enable it to
continue.
</noscript>
<script src="flutter_bootstrap.js" async></script>

<div class="spinner">
Expand Down
7 changes: 6 additions & 1 deletion console/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@ <h1>Sharezone über supertoll</h1>
</head>

<body>
<noscript>
We're sorry but the Sharezone console doesn't work properly without JavaScript enabled. Please enable it to
continue.
</noscript>

<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
window.addEventListener('load', function () {
navigator.serviceWorker.register('flutter_service_worker.js');
});
}
Expand Down
5 changes: 5 additions & 0 deletions website/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
</head>

<body>
<noscript>
We're sorry but the Sharezone website doesn't work properly without JavaScript enabled. Please enable it to
continue.
</noscript>

<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
Expand Down

0 comments on commit 01368dc

Please sign in to comment.