diff --git a/notifications.bs b/notifications.bs index cd339fd..939f1d8 100644 --- a/notifications.bs +++ b/notifications.bs @@ -715,9 +715,8 @@ corresponding notification is in the these steps:
If the entry settings object's
- global object is a {{ServiceWorkerGlobalScope}} object,
- then throw a TypeError
exception.
+
If the current global object is a {{ServiceWorkerGlobalScope}} object, then
+ throw a TypeError
exception.
Let notification be the result of creating a notification given diff --git a/notifications.html b/notifications.html index 257bb31..490f9d2 100644 --- a/notifications.html +++ b/notifications.html @@ -581,8 +581,7 @@
ServiceWorkerGlobalScope
object,
- then throw a TypeError
exception.
+ If the current global object is a ServiceWorkerGlobalScope
object, then throw a TypeError
exception.
Let notification be the result of creating a notification given title and options. Rethrow any exceptions.