Compare commits

..

No commits in common. "main" and "v1.1.452" have entirely different histories.

1 changed files with 2 additions and 6 deletions

View File

@ -226,18 +226,14 @@
@livewireScripts @livewireScripts
@livewire('wire-elements-modal') @livewire('wire-elements-modal')
<script> <script>
// 503 (Wartungsmodus) → Reload | 419 (Session abgelaufen) → Login // 503 (Wartungsmodus) → sofortiger Page-Reload statt Livewire-Fehlerdialog
;(function () { ;(function () {
var _fetch = window.fetch var _fetch = window.fetch
window.fetch = function () { window.fetch = function () {
return _fetch.apply(this, arguments).then(function (resp) { return _fetch.apply(this, arguments).then(function (resp) {
if (resp.status === 503) { if (resp.status === 503) {
window.location.reload() window.location.reload()
return new Promise(function () {}) return new Promise(function () {}) // Livewire-Chain abbrechen
}
if (resp.status === 419) {
window.location.href = '{{ route('login') }}'
return new Promise(function () {})
} }
return resp return resp
}) })