From ad87e969538a7fa0db66d827aac89780ba19a02a Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Mon, 16 Dec 2024 12:07:33 +0100 Subject: [PATCH] Order method --- app/javascript/hotwire_spark/reloaders/html_reloader.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() + } }