diff options
Diffstat (limited to 'files/ja/web/api/notifications_api/using_the_notifications_api')
-rw-r--r-- | files/ja/web/api/notifications_api/using_the_notifications_api/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 <p>コードの重複を避けるために、このスニペットの最初のメインブロックである <code>handlePermission()</code> 関数の中に、多少のハウスキーピングコードを格納しています。この内部では、 <code>Notification.permission</code> の値を明示的に設定し (古いバージョンの Chrome では自動的に設定できないものがありました)、ユーザーが許可ダイアログで選択した内容に応じてボタンを表示・非表示にしています。すでに許可されている場合は表示したくありませんが、ユーザーが許可を拒否することを選択した場合は、後で変更できるようにしたいと考えています。</p> <div class="note"> -<p><strong>注:</strong> バージョン 37 より前の Chrome では、 {{domxref("Notification.requestPermission()")}} を <code>load</code> イベントのハンドラー内で呼び出すことを許可していませんでした (<a href="https://code.google.com/p/chromium/issues/detail?id=274284" title="https://code.google.com/p/chromium/issues/detail?id=274284">issue 274284</a> をご覧ください)。</p> +<p><strong>注:</strong> バージョン 37 より前の Chrome では、 {{domxref("Notification.requestPermission()")}} を <code>load</code> イベントのハンドラー内で呼び出すことを許可していませんでした (<a href="https://code.google.com/p/chromium/issues/detail?id=274284">issue 274284</a> をご覧ください)。</p> </div> <h3 id="Feature-detecting_the_requestPermission_promise" name="Feature-detecting_the_requestPermission_promise">requestPermission() プロミスの機能検出</h3> |