Преглед на файлове

refac: mobile detection

Timothy J. Baek преди 1 година
родител
ревизия
e0908f9f26
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/lib/components/chat/MessageInput.svelte

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

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