Pārlūkot izejas kodu

refac: mobile detection

Timothy J. Baek 1 gadu atpakaļ
vecāks
revīzija
e0908f9f26
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/lib/components/chat/MessageInput.svelte

+ 1 - 0
src/lib/components/chat/MessageInput.svelte

@@ -763,6 +763,7 @@
 								bind:value={prompt}
 								bind:value={prompt}
 								on:keypress={(e) => {
 								on:keypress={(e) => {
 									if (
 									if (
+										window.innerWidth > 1024 &&
 										!(
 										!(
 											'ontouchstart' in window ||
 											'ontouchstart' in window ||
 											navigator.maxTouchPoints > 0 ||
 											navigator.maxTouchPoints > 0 ||