mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
clippy: Fix collapsible_if warnings (#31852)
This commit is contained in:
parent
3d10dbae32
commit
a53632c0e5
11 changed files with 85 additions and 95 deletions
|
@ -2393,10 +2393,8 @@ impl Document {
|
|||
// TODO: should this only happen on the first document loaded?
|
||||
// https://immersive-web.github.io/webxr/#user-intention
|
||||
// https://github.com/immersive-web/navigation/issues/10
|
||||
if pref!(dom.webxr.sessionavailable) {
|
||||
if self.window.is_top_level() {
|
||||
self.window.Navigator().Xr().dispatch_sessionavailable();
|
||||
}
|
||||
if pref!(dom.webxr.sessionavailable) && self.window.is_top_level() {
|
||||
self.window.Navigator().Xr().dispatch_sessionavailable();
|
||||
}
|
||||
|
||||
// Step 12: completely loaded.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue