From 664b318bec1b9629e5de6ddbf31c5263351cb1c7 Mon Sep 17 00:00:00 2001 From: glasgio Date: Fri, 1 Sep 2023 13:24:21 -0300 Subject: [PATCH] Fix syntax error --- src/vapid-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vapid-helper.js b/src/vapid-helper.js index bbe69c8b..343d11e8 100644 --- a/src/vapid-helper.js +++ b/src/vapid-helper.js @@ -77,7 +77,6 @@ function validateSubject(subject) { try { const subjectParseResult = new URL(subject); - } } catch (err) { throw new Error('Vapid subject is not a valid URL. ' + subject); } @@ -88,6 +87,7 @@ function validateSubject(subject) { console.warn('Vapid subject points to a localhost web URI, which is unsupported by ' + 'Apple\'s push notification server and will result in a BadJwtToken error when ' + 'sending notifications.'); + } } function validatePublicKey(publicKey) {