Skip to content

Commit

Permalink
design
Browse files Browse the repository at this point in the history
  • Loading branch information
andreinwald committed Oct 15, 2023
1 parent f06ff82 commit 7963b70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
case 'granted':
let subscription = await pushManager.getSubscription();
document.getElementById('active_sub').style.display = 'block';
document.getElementById('active_sub').innerHTML = '<b>Active subscription:</b><br><code>'
+ JSON.stringify(subscription.toJSON(), null, 2) + '</code>>';
let subscriptionText = JSON.stringify(subscription.toJSON(), null, 3).replace(' ', '<br>')
document.getElementById('active_sub').innerHTML = '<b>Active subscription:</b><br>' + subscriptionText;
break;
case 'denied':
console.log('Push Notifications denied by user');
Expand Down

0 comments on commit 7963b70

Please sign in to comment.