on master help sign in
Add runWithAppConfig
f060199Hamish Mackenzie
jsaddle-wkwebview/src-ghc/Language/Javascript/JSaddle/WKWebView.hs+7−2
@@ -3,6 +3,7 @@ module Language.Javascript.JSaddle.WKWebView
3 , jsaddleMainFile
3 , jsaddleMainFile
4 , WKWebView(..)
4 , WKWebView(..)
5 , run
5 , run
6+ , runWithAppConfig
6 , runFile
7 , runFile
7 , mainBundleResourcePath
8 , mainBundleResourcePath
8 , AppDelegateConfig (..)
9 , AppDelegateConfig (..)
@@ -91,8 +92,12 @@ instance Default AppDelegateNotificationConfig where
91
92
92
93
93-- | Run JSaddle in a WKWebView
94-- | Run JSaddle in a WKWebView
95+run :: JSM () -> IO ()
96+run = run' Nothing def
97+
98+-- | Run JSaddle in a WKWebView
94−run :: AppDelegateConfig -> JSM () -> IO ()
99+runWithAppConfig :: AppDelegateConfig -> JSM () -> IO ()
95−run = run' Nothing
100+runWithAppConfig = run' Nothing
96
101
97-- | Run JSaddle in a WKWebView first loading the specified file
102-- | Run JSaddle in a WKWebView first loading the specified file
98-- from the mainBundle (relative to the resourcePath).
103-- from the mainBundle (relative to the resourcePath).