MCPcopy Create free account
hub / github.com/SnapDrop/snapdrop / _icon

Method _icon

client/scripts/ui.js:132–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 }
131
132 _icon() {
133 const device = this._peer.name.device || this._peer.name;
134 if (device.type === 'mobile') {
135 return '#phone-iphone';
136 }
137 if (device.type === 'tablet') {
138 return '#tablet-mac';
139 }
140 return '#desktop-mac';
141 }
142
143 _onFilesSelected(e) {
144 const $input = e.target;

Callers 1

_initDomMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected