File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -36,4 +36,21 @@ impl PushSubscriptionOptionsInit {
36
36
let _ = r;
37
37
self
38
38
}
39
+ #[ doc = "Change the `userVisibleOnly` field of this object." ]
40
+ #[ doc = "" ]
41
+ #[ doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*" ]
42
+ pub fn user_visible_only ( & mut self , val : bool ) -> & mut Self {
43
+ use wasm_bindgen:: JsValue ;
44
+ let r = :: js_sys:: Reflect :: set (
45
+ self . as_ref ( ) ,
46
+ & JsValue :: from ( "userVisibleOnly" ) ,
47
+ & JsValue :: from ( val) ,
48
+ ) ;
49
+ debug_assert ! (
50
+ r. is_ok( ) ,
51
+ "setting properties should never fail on our dictionary objects"
52
+ ) ;
53
+ let _ = r;
54
+ self
55
+ }
39
56
}
Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
dictionary PushSubscriptionOptionsInit {
11
- // boolean userVisibleOnly = false;
11
+ boolean userVisibleOnly = false;
12
12
(BufferSource or DOMString)? applicationServerKey = null;
13
13
};
14
14
You can’t perform that action at this time.
0 commit comments