MCPcopy
hub / github.com/SnapDrop/snapdrop / $

Function $

client/scripts/ui.js:1–1  ·  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 6

ui.jsFile · 0.85
_onPeerJoinedMethod · 0.85
_onPeerLeftMethod · 0.85
_onFileProgressMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected