Skip to content

Commit 190f41e

Browse files
committed
feat: add notification to extension interface
1 parent 394f59a commit 190f41e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app-src/scripts/main/global-services/extension-interface-s.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,20 @@
1313

1414
class ExtensionInterface {
1515
/* @ngInject */
16-
constructor() {
16+
constructor(SimpleToast) {
1717
this.isInterfaceReady = false;
18+
this.SimpleToast = SimpleToast;
1819

1920
interfaceEl.addEventListener('SP_EXTENSION_READY', () => {
2021
this.isInterfaceReady = true;
22+
this.SimpleToast('SUCCESS', 'Super Productivity Extension found and loaded.')
2123
});
2224
}
2325

2426
addEventListener(ev, cb) {
2527
interfaceEl.addEventListener(ev, (ev) => {
2628
cb(ev, ev.detail);
27-
})
29+
});
2830
}
2931

3032
dispatchEvent(evName, data) {

0 commit comments

Comments
 (0)