Skip to content

Commit 9808cea

Browse files
miketaylrannevk
andauthored
Define and export "notifications" permission
Closes #184. Co-authored-by: Anne van Kesteren <[email protected]>
1 parent 5182863 commit 9808cea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

notifications.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,14 @@ removed from the <a>list of notifications</a>.
294294
<h3 id="permissions-integration">Permissions integration</h3>
295295

296296
<p>The Notifications API is a <a>powerful feature</a> which is identified by the
297-
<a for="powerful feature">name</a> "{{PermissionName/notifications}}". [[!Permissions]]
297+
<a for="powerful feature">name</a> "<dfn export permission><code>notifications</code></dfn>".
298+
[[!Permissions]]
298299

299300
<p>To <dfn>get the notifications permission state</dfn>, run these steps:
300301

301302
<ol>
302303
<li><p>Let <var>permissionState</var> be the result of <a>getting the current permission state</a>
303-
with "{{PermissionName/notifications}}".
304+
with "<a permission><code>notifications</code></a>".
304305

305306
<li><p>If <var>permissionState</var> is "<code>prompt</code>", then return "<code>default</code>".
306307

@@ -747,7 +748,7 @@ method steps are:
747748

748749
<ol>
749750
<li><p>Let <var>permissionState</var> be the result of
750-
<a>requesting permission to use</a> "{{PermissionName/notifications}}".
751+
<a>requesting permission to use</a> "<a permission><code>notifications</code></a>".
751752

752753
<li>
753754
<p><a>Queue a global task</a> on the <a>DOM manipulation task source</a> given <var>global</var>

0 commit comments

Comments
 (0)