File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 44
55THREE . DeviceOrientationControls = function ( object ) {
66
7+ if ( window . isSecureContext === false ) {
8+
9+ console . error ( 'THREE.DeviceOrientationControls: DeviceOrientationEvent is only available in secure contexts (https)' ) ;
10+
11+ }
12+
713 var scope = this ;
814 var changeEvent = { type : 'change' } ;
915 var EPS = 0.000001 ;
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ import {
1212
1313var DeviceOrientationControls = function ( object ) {
1414
15+ if ( window . isSecureContext === false ) {
16+
17+ console . error ( 'THREE.DeviceOrientationControls: DeviceOrientationEvent is only available in secure contexts (https)' ) ;
18+
19+ }
20+
1521 var scope = this ;
1622 var changeEvent = { type : 'change' } ;
1723 var EPS = 0.000001 ;
You can’t perform that action at this time.
0 commit comments