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

Function $$

client/scripts/ui.js:2–2  ·  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');
5window.isProductionEnvironment = !window.location.host.startsWith('localhost');

Callers 3

_onPeerJoinedMethod · 0.85
_clearPeersMethod · 0.85
_onPasteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected