diff --git a/README.md b/README.md index a3ccea07..cf2cd964 100644 --- a/README.md +++ b/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 diff --git a/src/index.js b/src/index.js index 8c547d82..31bdd80d 100644 --- a/src/index.js +++ b/src/index.js @@ -156,6 +156,7 @@ function onload2 (initState) { }) state.update() + call_hooks('initFinish') } window.setPath = function (path, state) {