Skip to content

Commit 9bb4fc7

Browse files
committed
Comment out notifications helper
1 parent 5d438d2 commit 9bb4fc7

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import {WebExtension} from "./webExtension";
1+
// import {WebExtension} from "./webExtension";
22

3-
type ButtonListener = (notificationId: string, buttonIndex: number) => void;
3+
// type ButtonListener = (notificationId: string, buttonIndex: number) => void;
44

5-
export class WebExtensionNotifications {
6-
private static buttonListener: ButtonListener;
5+
// export class WebExtensionNotifications {
6+
// private static buttonListener: ButtonListener;
77

8-
public static setButtonListener(buttonListener: ButtonListener): void {
9-
WebExtensionNotifications.removeButtonListener();
10-
WebExtensionNotifications.buttonListener = buttonListener;
11-
WebExtension.browser.notifications.onButtonClicked.addListener(buttonListener);
12-
}
8+
// public static setButtonListener(buttonListener: ButtonListener): void {
9+
// WebExtensionNotifications.removeButtonListener();
10+
// WebExtensionNotifications.buttonListener = buttonListener;
11+
// WebExtension.browser.notifications.onButtonClicked.addListener(buttonListener);
12+
// }
1313

14-
public static removeButtonListener(): void {
15-
if (WebExtensionNotifications.buttonListener) {
16-
WebExtension.browser.notifications.onButtonClicked.removeListener(WebExtensionNotifications.buttonListener);
17-
WebExtensionNotifications.buttonListener = undefined;
18-
}
19-
}
20-
}
14+
// public static removeButtonListener(): void {
15+
// if (WebExtensionNotifications.buttonListener) {
16+
// WebExtension.browser.notifications.onButtonClicked.removeListener(WebExtensionNotifications.buttonListener);
17+
// WebExtensionNotifications.buttonListener = undefined;
18+
// }
19+
// }
20+
// }

src/scripts/extensions/webExtensionBase/webExtensionWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {InvokeSource} from "../invokeSource";
2626
import {InjectUrls} from "./injectUrls";
2727
import {WebExtension} from "./webExtension";
2828
import {WebExtensionBackgroundMessageHandler} from "./webExtensionMessageHandler";
29-
import {WebExtensionNotifications} from "./webExtensionNotifications";
29+
// import {WebExtensionNotifications} from "./webExtensionNotifications";
3030

3131
type Tab = chrome.tabs.Tab;
3232
type TabRemoveInfo = chrome.tabs.TabRemoveInfo;

0 commit comments

Comments
 (0)