Rename .js/.jsx to .ts/.tsx
This commit is contained in:
parent
257162e5b6
commit
c60d0e7392
151 changed files with 0 additions and 0 deletions
|
@ -1,23 +0,0 @@
|
|||
const NOTIFICATION_ID = 'vimvixen-update';
|
||||
|
||||
export default class NotifyPresenter {
|
||||
notify(title, message, onclick) {
|
||||
const listener = (id) => {
|
||||
if (id !== NOTIFICATION_ID) {
|
||||
return;
|
||||
}
|
||||
|
||||
onclick();
|
||||
|
||||
browser.notifications.onClicked.removeListener(listener);
|
||||
};
|
||||
browser.notifications.onClicked.addListener(listener);
|
||||
|
||||
return browser.notifications.create(NOTIFICATION_ID, {
|
||||
'type': 'basic',
|
||||
'iconUrl': browser.extension.getURL('resources/icon_48x48.png'),
|
||||
title,
|
||||
message,
|
||||
});
|
||||
}
|
||||
}
|
Reference in a new issue