Browse Source

At end of initialization call hook 'initFinish'

master
parent
commit
ece5fc7556
  1. 1
      README.md
  2. 1
      src/index.js

1
README.md

@ -125,3 +125,4 @@ With the function `register_hook` you can hook into several functions. The follo
* `hide-details`: called when the details page is left. No parameters.
* `show-popup`: called when a popup is being displayed. Parameters: data (see properties in doc/TwigJS.md), category, dom, callback.
* `options_save`: called when options are saved. Parameters: options (the new object), old_options (before save)
* `initFinish`: called when the app initialization finishes

1
src/index.js

@ -156,6 +156,7 @@ function onload2 (initState) {
})
state.update()
call_hooks('initFinish')
}
window.setPath = function (path, state) {

Loading…
Cancel
Save