don't auto show info modal on mobile
This commit is contained in:
parent
09775d4343
commit
62aa2748b2
1 changed files with 5 additions and 5 deletions
|
|
@ -1141,6 +1141,10 @@
|
||||||
return localStorage.setItem("config_zoom_level_go_to_node", value);
|
return localStorage.setItem("config_zoom_level_go_to_node", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isMobile() {
|
||||||
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -1155,7 +1159,7 @@
|
||||||
isShowingHardwareModels: false,
|
isShowingHardwareModels: false,
|
||||||
hardwareModelStats: null,
|
hardwareModelStats: null,
|
||||||
|
|
||||||
isShowingInfoModal: !window.getConfigHasSeenInfoModal(),
|
isShowingInfoModal: !window.isMobile() && !window.getConfigHasSeenInfoModal(),
|
||||||
isShowingMobileSearch: false,
|
isShowingMobileSearch: false,
|
||||||
isShowingSettings: false,
|
isShowingSettings: false,
|
||||||
|
|
||||||
|
|
@ -1670,10 +1674,6 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function isMobile() {
|
|
||||||
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
||||||
}
|
|
||||||
|
|
||||||
function isValidLatLng(lat, lng) {
|
function isValidLatLng(lat, lng) {
|
||||||
|
|
||||||
if(isNaN(lat) || isNaN(lng)){
|
if(isNaN(lat) || isNaN(lng)){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue