diff --git a/app/javascript/hotwire_spark/reloaders/html_reloader.js b/app/javascript/hotwire_spark/reloaders/html_reloader.js index 651439ab..64f7ef3d 100644 --- a/app/javascript/hotwire_spark/reloaders/html_reloader.js +++ b/app/javascript/hotwire_spark/reloaders/html_reloader.js @@ -21,11 +21,11 @@ export class HtmlReloader { return reloadedDocument } - async #reloadStimulus(reloadedDocument) { - return new StimulusReloader(reloadedDocument).reload() - } - #updateBody(newBody) { Idiomorph.morph(document.body, newBody) } + + async #reloadStimulus(reloadedDocument) { + return new StimulusReloader(reloadedDocument).reload() + } }