Skip to content

Commit 4338a94

Browse files
committed
Optimized hiding of javascript-disabled-warning (jsAlert)
1 parent 951162f commit 4338a94

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

app/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ function OneSignalLogin () {
467467
// This function is to be run when our website loads.
468468
// We can therefore safely run functions from other scripts here, e.g. spa, ClipboardJS and OneSignal.
469469
function init () {
470-
spaHide('jsAlert');
471470
new ClipboardJS('.clipboard-js-btn');
472471
document.getElementById('login').addEventListener('click', (event) => {
473472
document.getElementById('signIn').showModal();

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ <h1>Welcome to Formonit</h1>
5656
<main class="col-sm-11 bg-light pt-5 pb-4">
5757
<div class="text-bg-light">
5858
<p class="alert alert-danger" id="jsAlert">You don't have JavaScript enabled! This page cannot function without it.</p>
59+
<script>document.getElementById('jsAlert').hidden = true;</script>
5960
<div class="spa-page" id="about">
6061
<section>
6162
<h3>About</h3>

0 commit comments

Comments
 (0)