diff --git a/piston/static/js/register.js b/piston/static/js/register.js index aeac33b..1d82659 100644 --- a/piston/static/js/register.js +++ b/piston/static/js/register.js @@ -43,9 +43,15 @@ function onSubmit(e) { serviceWorkerRegistration.pushManager.subscribe({userVisibleOnly: true}).then((subscription) => { document.querySelector("input[name='subscription']").value = JSON.stringify(subscription.toJSON()); document.querySelector(".approval-form").submit(); + }).catch((e) => { + var exception = Raven.captureException(e); + console.log(e, exception); }); }); } + }).catch((e) => { + var exception = Raven.captureException(e); + console.log(e, exception); }); }