質問編集履歴
1
インデント修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
```Javascript
|
24
24
|
|
25
|
-
|
25
|
+
navigator.serviceWorker.register('/sb_app/js/sw.js');
|
26
26
|
|
27
27
|
Notification.requestPermission(function(result) {
|
28
28
|
|
@@ -50,9 +50,9 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
-
var options2 = { tag : 'user_alerts' };
|
53
|
+
var options2 = { tag : 'user_alerts' };
|
54
54
|
|
55
|
-
registration.getNotifications(options2).then(function(notifications) {
|
55
|
+
registration.getNotifications(options2).then(function(notifications) {
|
56
56
|
|
57
57
|
console.log("demo");
|
58
58
|
|