File tree 1 file changed +19
-2
lines changed
src/main/scala/org/scalajs/dom/experimental/push
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import scala.scalajs.js.typedarray.{ArrayBuffer, Uint8Array}
14
14
*
15
15
* MDN
16
16
*
17
- * The Push API is currently specified here: [[http ://www.w3.org/TR/2015 /WD-push-api-20151215 / ]]
17
+ * The Push API is currently specified here: [[https ://www.w3.org/TR/2018 /WD-push-api-20181026 / ]]
18
18
*/
19
19
@ js.native
20
20
trait PushManager extends js.Object {
@@ -79,6 +79,23 @@ trait PushSubscription extends js.Object {
79
79
*/
80
80
val endpoint : String = js.native
81
81
82
+ /**
83
+ * The expirationTime read-only property of the PushSubscription interface returns a
84
+ * DOMHighResTimeStamp of the subscription expiration time associated with the push
85
+ * subscription, if there is one, or null otherwise.
86
+ *
87
+ * MDN
88
+ */
89
+ val expirationTime : Double = js.native
90
+
91
+ /**
92
+ * The options read-only property of the PushSubscription interface is an object containing
93
+ * containing the options used to create the subscription.
94
+ *
95
+ * MDN
96
+ */
97
+ val options : PushSubscriptionOptions = js.native
98
+
82
99
/**
83
100
* The getKey method retrieves keying material that can be used for encrypting and authenticating messages.
84
101
*/
@@ -98,7 +115,7 @@ trait PushSubscription extends js.Object {
98
115
*
99
116
* MDN
100
117
*/
101
- def toJSON (): String = js.native
118
+ def toJSON (): js. Dictionary [js. Any ] = js.native
102
119
}
103
120
104
121
/**
You can’t perform that action at this time.
0 commit comments