File tree 1 file changed +11
-0
lines changed
packages/core/overlay/sap/ui
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,10 @@ const _getOS = () => {
165
165
}
166
166
167
167
const _setOS = ( ) => {
168
+ if ( Device . os ) {
169
+ return ;
170
+ }
171
+
168
172
Device . os = _getOS ( ) || { } ;
169
173
Device . os . OS = OS ;
170
174
Device . os . version = Device . os . versionStr ? parseFloat ( Device . os . versionStr ) : - 1 ;
@@ -592,6 +596,10 @@ const isSafari = () => {
592
596
//******** Support Detection ********
593
597
594
598
const _setSupport = ( ) => {
599
+ if ( Device . support ) {
600
+ return ;
601
+ }
602
+
595
603
if ( ! Device . browser ) {
596
604
setBrowser ( ) ;
597
605
}
@@ -751,6 +759,9 @@ const _getSystem = () => {
751
759
}
752
760
753
761
const _setSystem = ( ) => {
762
+ _setSupport ( ) ;
763
+ _setOS ( ) ;
764
+
754
765
Device . system = { } ;
755
766
Device . system = _getSystem ( ) ;
756
767
if ( Device . system . tablet || Device . system . phone ) {
You can’t perform that action at this time.
0 commit comments