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 9545105 commit fdd6108
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<title>WebPush iOS example</title>
<link rel="canonical" href="https://andreinwald.github.io/webpush-ios-example/"/>
<base href="https://andreinwald.github.io/webpush-ios-example/">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>

<link rel="apple-touch-icon" href="images/favicon.png">
<link rel="icon" type="image/png" href="images/favicon.png">
Expand All @@ -20,7 +20,8 @@
break;
case 'granted':
let subscription = await pushManager.getSubscription();
document.getElementById('active_sub').innerHTML = '<b>Active subscription:</b><br>' + JSON.stringify(subscription.toJSON(), null, 2);
document.getElementById('active_sub').innerHTML = '<b>Active subscription:</b><br><code>'
+ JSON.stringify(subscription.toJSON(), null, 2) + '</code>>';
break;
case 'denied':
console.log('Push Notifications denied by user');
Expand Down

0 comments on commit fdd6108

Please sign in to comment.