Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display notice if JavaScript is disabled #1796

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading