Main Module
Functions and values
| Function or value | Description |
|
|
Full Usage:
appStarted
Returns: bool
|
|
Full Usage:
argFlagIsOn flags
Parameters:
string list
Returns: bool
|
|
Full Usage:
args
Returns: string list
|
|
Full Usage:
closeAfterSave
Returns: bool
|
|
|
|
Full Usage:
createSplashWindow onPainted
Parameters:
unit -> unit
|
Issie's renderer takes a noticeable time to start, and until it does the app window has nothing in it. This frameless window covers that gap: it is the first thing on screen, and the main window stays hidden behind it until its content has finished loading. It stays hidden until it has painted. Chromium fills a new window with white until its web contents produce a frame - backgroundColor does not change that - and a renderer process takes long enough to spawn that showing the window on creation put a white rectangle on screen for most of the start. onPainted then runs, and is where the app's own load is started from.
|
Full Usage:
debug
Returns: bool
|
|
Full Usage:
devServerUrl
Returns: string
|
|
Full Usage:
dispatchToRenderer (arg1, arg2)
Parameters:
string
arg1 : string
|
|
|
|
Full Usage:
hasDebugArgs ()
Parameters:
unit
Returns: bool
|
|
Full Usage:
isAppUrl url
Parameters:
string
Returns: bool
|
|
Full Usage:
isMacos
Returns: bool
|
|
Full Usage:
isWin
Returns: bool
|
|
Full Usage:
jsFlags
Returns: string
|
|
|
|
|
|
Full Usage:
openExternally url
Parameters:
string
|
|
Full Usage:
printListeners ()
Parameters:
unit
|
|
Full Usage:
processUptime ()
Parameters:
unit
Returns: float
|
|
|
|
Full Usage:
splashPagePath ()
Parameters:
unit
Returns: string
|
Where splash.html lives. __static is a compile-time substitution, and the production one expands to a template literal over a bare `path` identifier that webpack's bundle does not bind - so reading it unconditionally throws before any window exists. Every other consumer (the icon below, FilesIO) branches around it for exactly this reason.
|
|
|
Full Usage:
stampStartup phase
Parameters:
string
|
|
|
|
Full Usage:
startup ()
Parameters:
unit
|
|
Full Usage:
staticDir ()
Parameters:
unit
Returns: string
|
|
Full Usage:
wait n cont
Parameters:
int
cont : unit -> unit
|
|