on master help sign in
Add runWithAppConfig
commitca29b2437ce7407fba09505bcbd300ebf84e587f authorHamish Mackenzie <Hamish.K.Mackenzie@googlemail.com> dateSat 13 May 2017, 15:11 (9 years ago) parentaa06e8f
1 file changed+7−2
jsaddle-wkwebview/src-ghc/Language/Javascript/JSaddle/WKWebView.hs+7−2
jsaddle-wkwebview/src-ghc/Language/Javascript/JSaddle/WKWebView.hs+7−2
@@ -3,6 +3,7 @@ module Language.Javascript.JSaddle.WKWebView
33 , jsaddleMainFile
44 , WKWebView(..)
55 , run
6+ , runWithAppConfig
67 , runFile
78 , mainBundleResourcePath
89 , AppDelegateConfig (..)
@@ -91,8 +92,12 @@ instance Default AppDelegateNotificationConfig where
9192
9293
9394-- | Run JSaddle in a WKWebView
94−run :: AppDelegateConfig -> JSM () -> IO ()
95−run = run' Nothing
95+run :: JSM () -> IO ()
96+run = run' Nothing def
97+
98+-- | Run JSaddle in a WKWebView
99+runWithAppConfig :: AppDelegateConfig -> JSM () -> IO ()
100+runWithAppConfig = run' Nothing
96101
97102-- | Run JSaddle in a WKWebView first loading the specified file
98103-- from the mainBundle (relative to the resourcePath).