Skip to content

Commit cab8032

Browse files
committed
Errors when notifications unavailable
1 parent e25b56d commit cab8032

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webex/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function assertNoResponse(response) {
1919
}
2020

2121
function notifyError(error) {
22-
browser.notifications.create({
22+
browser.notifications?.create({
2323
type: "basic",
2424
title: "Textern",
2525
message: "Error: " + error + "."

webex/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function assertNoResponse(response) {
1717
}
1818

1919
function notifyError(error) {
20-
browser.notifications.create({
20+
browser.notifications?.create({
2121
type: "basic",
2222
title: "Textern",
2323
message: "Error: " + error + "."

0 commit comments

Comments
 (0)