import Js.Node.Module
import Js.Electron.App
import Js.Electron.Window

%lib Node "electron"

%default total



win : String -> Options
win dir = record {title = Just "Hello Electron", url = Just ("file://" ++ dir ++ "/view.html"), width = Just 800, height = Just 600} defaults

main : JS_IO ()
main = onReady $ do centre !(create $ win !dir)
