mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
Tidy up Javascript files
This commit is contained in:
parent
cb8d6448f5
commit
d84c7d1f84
8 changed files with 56 additions and 28 deletions
|
@ -1,5 +1,3 @@
|
|||
const $ = query => document.getElementById(query);
|
||||
const $$ = query => document.body.querySelector(query);
|
||||
window.iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
||||
window.android = /android/i.test(navigator.userAgent);
|
||||
window.isMobile = window.iOS || window.android;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue