From ece5fc7556d640ff96c8ed6843775d9da051b301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 22 Jan 2018 22:15:23 +0100 Subject: [PATCH] At end of initialization call hook 'initFinish' --- README.md | 1 + src/index.js | 1 + 2 files changed, 2 insertions(+) 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) {