From 73a81b977f7f80c31df404913f9f5fbc100fd7c3 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Tue, 18 Feb 2025 23:16:27 +0100 Subject: [PATCH] Auto init all --- assets/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/index.js b/assets/index.js index a49af462c..f33710c93 100755 --- a/assets/index.js +++ b/assets/index.js @@ -2,7 +2,7 @@ import $ from 'jquery'; /* Materialize imports */ import '@materializecss/materialize/dist/css/materialize.css'; -import '@materializecss/materialize/dist/js/materialize'; +import M from '@materializecss/materialize/dist/js/materialize'; /* Annotations */ import annotator from 'annotator'; @@ -44,6 +44,8 @@ const mobileMaxWidth = 993; ========================================================================== */ $(document).ready(() => { + M.AutoInit(); + if ($('#article').length) { const app = new annotator.App();