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