Skip to content
Snippets Groups Projects
Commit 1f9900aa authored by Shae Erisson's avatar Shae Erisson :8ball:
Browse files

Merge branch 'mdc-init-on-firstrun-properly' into 'main'

don't run the mdc init until the page has loaded

See merge request !69
parents dbcfde30 2751f0c9
Branches
No related tags found
1 merge request!69don't run the mdc init until the page has loaded
Pipeline #4997 passed
......@@ -14,7 +14,7 @@ import Common.Route
-- Define the entire view for looking at our beautiful firstRun screen.
firstRunPage :: (SetRoute t (R FrontendRoute) m, DomBuilder t m) => m ()
firstRunPage = do
elClass "main" "firstRunPage" $ do
elAttr "main" ("class" =: "firstRunPage" <> "onload" =: "mdc.autoInit()") $ do
elClass "div" "logo" $
elAttr "img" ("src" =: logoStacked) blank
elClass "div" "subtext mdc-typography--body2" $ do
......@@ -28,6 +28,3 @@ firstRunPage = do
setRoute $ (FrontendRoute_TechDemo :/ []) <$ domEvent Click readyButton
pure ()
el "script" $
text "mdc.autoInit();"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment