@@ -3,6 +3,7 @@ module Language.Javascript.JSaddle.WKWebView
3 , jsaddleMainFile
3 , jsaddleMainFile
4 , WKWebView(..)
4 , WKWebView(..)
7 , mainBundleResourcePath
8 , mainBundleResourcePath
8 , AppDelegateConfig (..)
9 , AppDelegateConfig (..)
@@ -91,8 +92,12 @@ instance Default AppDelegateNotificationConfig where
93-- | Run JSaddle in a WKWebView
94-- | Run JSaddle in a WKWebView
95+run :: JSM () -> IO ()
96+run = run' Nothing def
98+-- | Run JSaddle in a WKWebView
94−run :: AppDelegateConfig -> JSM () -> IO ()
99+runWithAppConfig :: AppDelegateConfig -> JSM () -> IO ()
95−run = run' Nothing
100+runWithAppConfig = run' Nothing
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).