From df5d0e195e1715dda42d65dcdd01298fa6d4abb4 Mon Sep 17 00:00:00 2001 From: Valentin Ledrapier Date: Tue, 29 Jan 2019 12:04:46 +0100 Subject: [PATCH] Update integration example --- tools/integration-example/src/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/integration-example/src/index.js b/tools/integration-example/src/index.js index 57bca4a..345b18e 100644 --- a/tools/integration-example/src/index.js +++ b/tools/integration-example/src/index.js @@ -8,6 +8,8 @@ const app = obsidianApp({ }); -console.log("App ready", app); - window.app = app; + +app.on("ready", () => { + console.log("App ready", app); +});