diff --git a/src/App.vue b/src/App.vue index 923baa9..652b17b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,13 +16,9 @@ const data = useDataStore(); onMounted(() => data.startUpdating()); onUnmounted(() => data.stopUpdating()); -try { - // Detect mobile browsers - if (navigator.userAgent.match(/iPhone|iPad|Android/i)) { - document.body.classList.add('is-mobile'); - } -} catch (e) { - // +// Detect mobile browsers +if (navigator.userAgent.match(/iPhone|iPad|Android/i)) { + document.body.classList.add('is-mobile'); } diff --git a/src/components/gear/GearCard.vue b/src/components/gear/GearCard.vue index a67d594..1f5033e 100644 --- a/src/components/gear/GearCard.vue +++ b/src/components/gear/GearCard.vue @@ -54,23 +54,8 @@ - -
- - + +
{{ $t('time.left', { time: formatDurationHoursFromNow(props.gear.saleEndTime) }) }}
@@ -80,9 +65,7 @@