diff options
Diffstat (limited to 'runtime/js/10_permissions.js')
-rw-r--r-- | runtime/js/10_permissions.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/js/10_permissions.js b/runtime/js/10_permissions.js index ff5abc01d..ef3135868 100644 --- a/runtime/js/10_permissions.js +++ b/runtime/js/10_permissions.js @@ -95,7 +95,7 @@ class PermissionStatus extends EventTarget { */ constructor(status = null, key = null) { if (key != illegalConstructorKey) { - throw new TypeError("Illegal constructor."); + throw new TypeError("Illegal constructor"); } super(); this.#status = status; @@ -194,7 +194,7 @@ function formDescriptor(desc) { class Permissions { constructor(key = null) { if (key != illegalConstructorKey) { - throw new TypeError("Illegal constructor."); + throw new TypeError("Illegal constructor"); } } @@ -209,7 +209,7 @@ class Permissions { querySync(desc) { if (!isValidDescriptor(desc)) { throw new TypeError( - `The provided value "${desc?.name}" is not a valid permission name.`, + `The provided value "${desc?.name}" is not a valid permission name`, ); } @@ -230,7 +230,7 @@ class Permissions { revokeSync(desc) { if (!isValidDescriptor(desc)) { throw new TypeError( - `The provided value "${desc?.name}" is not a valid permission name.`, + `The provided value "${desc?.name}" is not a valid permission name`, ); } |