Fixed global reload mechanism.

This commit is contained in:
Jan Böhmer 2022-07-30 13:25:29 +02:00
parent 39ae5b9c2f
commit 9139d49628

View file

@ -3,6 +3,6 @@ import { Controller } from '@hotwired/stimulus';
export default class extends Controller { export default class extends Controller {
connect() { connect() {
//If we encounter an element with global reload controller, then reload the whole page //If we encounter an element with global reload controller, then reload the whole page
window.location.href = window.location.href; window.location.reload();
} }
} }