Skip to content

Commit

Permalink
Chore: Display nicer noscript message when JavaScript is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Jul 24, 2024
1 parent 41c957b commit 9e881ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ func index(w http.ResponseWriter, _ *http.Request) {
<body class="h-100">
<div class="container-fluid h-100 d-flex flex-column" id="app" data-webroot="{{ .Webroot }}" data-version="{{ .Version }}">
<noscript>You require JavaScript to use this app.</noscript>
<noscript class="alert alert-warning position-absolute top-50 start-50 translate-middle">
You need a browser with JavaScript support to use Mailpit
</noscript>
</div>
<script src="{{ .Webroot }}dist/app.js?{{ .Version }}"></script>
Expand Down

0 comments on commit 9e881ea

Please sign in to comment.