MCPcopy
hub / github.com/SnapDrop/snapdrop / ui.js

File ui.js

client/scripts/ui.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const $ = query => document.getElementById(query);
2const $$ = query => document.body.querySelector(query);
3const isURL = text => /^((https?:\/\/|www)[^\s]+)/g.test(text.toLowerCase());
4window.isDownloadSupported = (typeof document.createElement('a').download !== 'undefined');

Callers

nothing calls this directly

Calls 4

$Function · 0.85
animateFunction · 0.85
initFunction · 0.85
onMethod · 0.80

Tested by

no test coverage detected