Merge pull request #482 from obsidiansystems/ts-fix-exe-config
exe-config: fix ghcjs config gathering
commit148be304e9e911bea690c92276e886ce0315851f
authorAli Abrar <aliabrar@gmail.com>
dateWed 14 Aug 2019, 17:42 (7 years ago)
parent2ec4407b82dabc
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 decodeOrFail x = case B64.decode (T.encodeUtf8 x) of