File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/main/scala/org/scalajs/dom/experimental/permissions Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ package object permissions {
24
24
25
25
trait PermissionStatus extends dom.raw.EventTarget {
26
26
val state : PermissionState
27
- var onchange : js.Function1 [PermissionState , _]
27
+ var onchange : js.Function1 [dom. Event , _]
28
28
}
29
29
30
30
@ js.native
@@ -52,6 +52,20 @@ package object permissions {
52
52
}
53
53
}
54
54
55
+ trait PushPermissionDescriptor extends PermissionDescriptor {
56
+ val userVisibleOnly : Boolean
57
+ }
58
+
59
+ object PushPermissionDescriptor {
60
+ @ inline
61
+ def apply (permissionUserVisibleOnly : Boolean ): PushPermissionDescriptor = {
62
+ new PushPermissionDescriptor {
63
+ val name = PermissionName .push
64
+ val userVisibleOnly = permissionUserVisibleOnly
65
+ }
66
+ }
67
+ }
68
+
55
69
trait Permissions extends js.Object {
56
70
def query (
57
71
permissionDescriptor : PermissionDescriptor ): js.Promise [PermissionStatus ]
You can’t perform that action at this time.
0 commit comments