Skip to content

Commit f34d9eb

Browse files
committed
Use https in examples
1 parent 8db3056 commit f34d9eb

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ var notification = new pushpad.Notification({
6161
project: project,
6262
body: 'Hello world!',
6363
title: 'Website Name', // optional, defaults to your project name
64-
targetUrl: 'http://example.com', // optional, defaults to your project website
65-
iconUrl: 'http://example.com/assets/icon.png', // optional, defaults to the project icon
66-
imageUrl: 'http://example.com/assets/image.png', // optional, an image to display in the notification content
64+
targetUrl: 'https://example.com', // optional, defaults to your project website
65+
iconUrl: 'https://example.com/assets/icon.png', // optional, defaults to the project icon
66+
imageUrl: 'https://example.com/assets/image.png', // optional, an image to display in the notification content
6767
ttl: 604800, // optional, drop the notification after this number of seconds if a device is offline
6868
requireInteraction: true, // optional, prevent Chrome on desktop from automatically closing the notification after a few seconds
6969
urgent: false, // optional, enable this option only for time-sensitive alerts (e.g. incoming phone call)
@@ -73,8 +73,8 @@ var notification = new pushpad.Notification({
7373
actions: [
7474
{
7575
title: 'My Button 1',
76-
targetUrl: 'http://example.com/button-link', // optional
77-
icon: 'http://example.com/assets/button-icon.png', // optional
76+
targetUrl: 'https://example.com/button-link', // optional
77+
icon: 'https://example.com/assets/button-icon.png', // optional
7878
action: 'myActionName' // optional
7979
}
8080
],

example.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var notification = new pushpad.Notification({
2222
project: project,
2323
body: 'Hello world!',
2424
title: 'Website Name',
25-
targetUrl: 'http://example.com'
25+
targetUrl: 'https://example.com'
2626
});
2727

2828
notification.deliverTo(user1, function (err, result) {

test/notification.js

+20-20
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ var notification = new Notification({
1313
project: project,
1414
body: 'Hello world!',
1515
title: 'Website Name',
16-
targetUrl: 'http://example.com',
17-
iconUrl: 'http://example.com/assets/icon.png',
18-
imageUrl: 'http://example.com/assets/image.png',
16+
targetUrl: 'https://example.com',
17+
iconUrl: 'https://example.com/assets/icon.png',
18+
imageUrl: 'https://example.com/assets/image.png',
1919
ttl: 600,
2020
requireInteraction: true,
2121
urgent: true,
@@ -24,8 +24,8 @@ var notification = new Notification({
2424
actions: [
2525
{
2626
title: 'My Button 1',
27-
targetUrl: 'http://example.com/button-link',
28-
icon: 'http://example.com/assets/button-icon.png',
27+
targetUrl: 'https://example.com/button-link',
28+
icon: 'https://example.com/assets/button-icon.png',
2929
action: 'myActionName'
3030
}
3131
],
@@ -57,9 +57,9 @@ describe('Notification', function () {
5757
'notification': {
5858
'body': 'Hello world!',
5959
'title': 'Website Name',
60-
'target_url': 'http://example.com',
61-
'icon_url': 'http://example.com/assets/icon.png',
62-
'image_url': 'http://example.com/assets/image.png',
60+
'target_url': 'https://example.com',
61+
'icon_url': 'https://example.com/assets/icon.png',
62+
'image_url': 'https://example.com/assets/image.png',
6363
'ttl': 600,
6464
'require_interaction': true,
6565
'urgent': true,
@@ -68,8 +68,8 @@ describe('Notification', function () {
6868
'actions': [
6969
{
7070
'title': 'My Button 1',
71-
'target_url': 'http://example.com/button-link',
72-
'icon': 'http://example.com/assets/button-icon.png',
71+
'target_url': 'https://example.com/button-link',
72+
'icon': 'https://example.com/assets/button-icon.png',
7373
'action': 'myActionName'
7474
}
7575
],
@@ -106,9 +106,9 @@ describe('Notification', function () {
106106
'notification': {
107107
'body': 'Hello world!',
108108
'title': 'Website Name',
109-
'target_url': 'http://example.com',
110-
'icon_url': 'http://example.com/assets/icon.png',
111-
'image_url': 'http://example.com/assets/image.png',
109+
'target_url': 'https://example.com',
110+
'icon_url': 'https://example.com/assets/icon.png',
111+
'image_url': 'https://example.com/assets/image.png',
112112
'ttl': 600,
113113
'require_interaction': true,
114114
'urgent': true,
@@ -117,8 +117,8 @@ describe('Notification', function () {
117117
'actions': [
118118
{
119119
'title': 'My Button 1',
120-
'target_url': 'http://example.com/button-link',
121-
'icon': 'http://example.com/assets/button-icon.png',
120+
'target_url': 'https://example.com/button-link',
121+
'icon': 'https://example.com/assets/button-icon.png',
122122
'action': 'myActionName'
123123
}
124124
],
@@ -156,9 +156,9 @@ describe('Notification', function () {
156156
'notification': {
157157
'body': 'Hello world!',
158158
'title': 'Website Name',
159-
'target_url': 'http://example.com',
160-
'icon_url': 'http://example.com/assets/icon.png',
161-
'image_url': 'http://example.com/assets/image.png',
159+
'target_url': 'https://example.com',
160+
'icon_url': 'https://example.com/assets/icon.png',
161+
'image_url': 'https://example.com/assets/image.png',
162162
'ttl': 600,
163163
'require_interaction': true,
164164
'urgent': true,
@@ -167,8 +167,8 @@ describe('Notification', function () {
167167
'actions': [
168168
{
169169
'title': 'My Button 1',
170-
'target_url': 'http://example.com/button-link',
171-
'icon': 'http://example.com/assets/button-icon.png',
170+
'target_url': 'https://example.com/button-link',
171+
'icon': 'https://example.com/assets/button-icon.png',
172172
'action': 'myActionName'
173173
}
174174
],

0 commit comments

Comments
 (0)