Skip to content

Commit 6c64975

Browse files
committed
working on ojs events
1 parent eb39f4c commit 6c64975

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ container.value("loader", loader);
4444
container.value("autoload", autoload);
4545
container.value("h", h);
4646

47+
let ojsRouterEvents = {
48+
ojs: {
49+
beforeRouteChange: true,
50+
routeChanged: true,
51+
},
52+
};
53+
54+
broker.registerEvents(ojsRouterEvents);
55+
4756
// Global Helpers
4857
const state = State.state;
4958
const ojs = (...classDeclarations) => new Runner().run(...classDeclarations);

0 commit comments

Comments
 (0)