From 7963b70e64f5c01fe03289f0077e4d4c27c7eacd Mon Sep 17 00:00:00 2001 From: andreinwald Date: Sun, 15 Oct 2023 11:33:55 +0200 Subject: [PATCH] design --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 3dcf32f..94cf07a 100644 --- a/index.html +++ b/index.html @@ -21,8 +21,8 @@ case 'granted': let subscription = await pushManager.getSubscription(); document.getElementById('active_sub').style.display = 'block'; - document.getElementById('active_sub').innerHTML = 'Active subscription:
' - + JSON.stringify(subscription.toJSON(), null, 2) + '>'; + let subscriptionText = JSON.stringify(subscription.toJSON(), null, 3).replace(' ', '
') + document.getElementById('active_sub').innerHTML = 'Active subscription:
' + subscriptionText; break; case 'denied': console.log('Push Notifications denied by user');