1 parent 66210f6 commit c7a2862Copy full SHA for c7a2862
1 file changed
examples/demo-dock-client/src/index.ts
@@ -40,11 +40,9 @@ function getStore(): DemoStore {
40
*/
41
export default function setup(ctx: DockClientScriptContext): void {
42
const store = getStore()
43
- ctx.current.events.on('entry:activated', () => {
44
- store.activations += 1
45
- store.events.emit('activated', store.activations)
46
- void ctx.messages.info(`Demo client script activated (#${store.activations} this page)`, {
47
- description: `Loaded from ${new URL(import.meta.url).pathname}`,
48
- })
+ store.activations += 1
+ store.events.emit('activated', store.activations)
+ void ctx.messages.info(`Demo client script activated (#${store.activations} this page)`, {
+ description: `Loaded from ${new URL(import.meta.url).pathname}`,
49
})
50
}
0 commit comments