File tree 3 files changed +21
-0
lines changed
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,13 @@ class ARButton {
104
104
105
105
currentSession . end ( ) ;
106
106
107
+ if ( navigator . xr . offerSession !== undefined ) {
108
+
109
+ navigator . xr . offerSession ( 'immersive-ar' , sessionInit )
110
+ . then ( onSessionStarted ) ;
111
+
112
+ }
113
+
107
114
}
108
115
109
116
} ;
Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ class VRButton {
70
70
71
71
currentSession . end ( ) ;
72
72
73
+ if ( navigator . xr . offerSession !== undefined ) {
74
+
75
+ navigator . xr . offerSession ( 'immersive-vr' , sessionInit )
76
+ . then ( onSessionStarted ) ;
77
+
78
+ }
79
+
73
80
}
74
81
75
82
} ;
Original file line number Diff line number Diff line change @@ -74,6 +74,13 @@ class XRButton {
74
74
75
75
currentSession . end ( ) ;
76
76
77
+ if ( navigator . xr . offerSession !== undefined ) {
78
+
79
+ navigator . xr . offerSession ( mode , sessionOptions )
80
+ . then ( onSessionStarted ) ;
81
+
82
+ }
83
+
77
84
}
78
85
79
86
} ;
You can’t perform that action at this time.
0 commit comments