Skip to content

Commit 3186eba

Browse files
committed
Add link regarding maxActions Firefox support
1 parent 8e4cba1 commit 3186eba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/messaging/src/controllers/sw-controller.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ describe('SwController', () => {
277277
});
278278

279279
it('warns if there are more action buttons than the browser limit', async () => {
280-
// This doesn't exist on Firefox.
280+
// This doesn't exist on Firefox:
281+
// https://developer.mozilla.org/en-US/docs/Web/API/notification/maxActions
281282
if (!Notification.maxActions) {
282283
return;
283284
}

packages/messaging/src/controllers/sw-controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ function showNotification(details: NotificationDetails): Promise<void> {
340340

341341
const { actions } = details;
342342
// Note: Firefox does not support the maxActions property.
343+
// https://developer.mozilla.org/en-US/docs/Web/API/notification/maxActions
343344
const { maxActions } = Notification;
344345
if (actions && maxActions && actions.length > maxActions) {
345346
console.warn(

0 commit comments

Comments
 (0)