From b3400a41e5ff084784e4557bb07c0a351a34d477 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 2 Aug 2021 22:42:50 -0400 Subject: remove link 'title' attributes that's just the 'href' (ja, part 4) (#1851) --- .../ja/web/api/notifications_api/using_the_notifications_api/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/ja/web/api/notifications_api') diff --git a/files/ja/web/api/notifications_api/using_the_notifications_api/index.html b/files/ja/web/api/notifications_api/using_the_notifications_api/index.html index fd19479d37..cae904fb10 100644 --- a/files/ja/web/api/notifications_api/using_the_notifications_api/index.html +++ b/files/ja/web/api/notifications_api/using_the_notifications_api/index.html @@ -113,7 +113,7 @@ translation_of: Web/API/Notifications_API/Using_the_Notifications_API

コードの重複を避けるために、このスニペットの最初のメインブロックである handlePermission() 関数の中に、多少のハウスキーピングコードを格納しています。この内部では、 Notification.permission の値を明示的に設定し (古いバージョンの Chrome では自動的に設定できないものがありました)、ユーザーが許可ダイアログで選択した内容に応じてボタンを表示・非表示にしています。すでに許可されている場合は表示したくありませんが、ユーザーが許可を拒否することを選択した場合は、後で変更できるようにしたいと考えています。

-

注: バージョン 37 より前の Chrome では、 {{domxref("Notification.requestPermission()")}} を load イベントのハンドラー内で呼び出すことを許可していませんでした (issue 274284 をご覧ください)。

+

注: バージョン 37 より前の Chrome では、 {{domxref("Notification.requestPermission()")}} を load イベントのハンドラー内で呼び出すことを許可していませんでした (issue 274284 をご覧ください)。

requestPermission() プロミスの機能検出

-- cgit v1.2.3-54-g00ecf