exe-config: fix ghcjs config gathering
commit13ec4443401a6c1eef1b0ec7ee7bfbcae805fb2a
authorTom Smalley <tfsmalley@gmail.com>
dateFri 26 Jul 2019, 18:55 (7 years ago)
parent86a9584
lib/executable-config/lookup/src-ghcjs/Obelisk/ExecutableConfig/Lookup.hs+2−1
@@ -30,7 +30,8 @@ getConfigs = do
3030 Just htmlE -> return htmlE
3131 dataset <- getDataset e
3232 (,)
33− <$> get dataset ("obelisk-executable-config-inject-key" :: Text)
33+ -- the key is camelCased: https://html.spec.whatwg.org/multipage/dom.html#dom-dataset
34+ <$> get dataset ("obeliskExecutableConfigInjectKey" :: Text)
3435 <*> (fmap decodeOrFail (getInnerHTML e))
3536 where
3637 collToList es = do