Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
24 lines
621 B
JavaScript
24 lines
621 B
JavaScript
/* global BaseIcon */
|
|
'use strict';
|
|
|
|
(function(exports) {
|
|
var UsbIcon = function(manager){
|
|
BaseIcon.call(this, manager);
|
|
};
|
|
UsbIcon.prototype = Object.create(BaseIcon.prototype);
|
|
UsbIcon.prototype.name = 'UsbIcon';
|
|
UsbIcon.prototype.shouldDisplay = function() {
|
|
return this.manager.umsActive;
|
|
};
|
|
|
|
UsbIcon.prototype.view = function view() {
|
|
return `<div id="statusbar-usb"
|
|
class="sb-icon sb-icon-usb"
|
|
hidden role="listitem"
|
|
aria-live="polite"
|
|
data-l10n-id="statusbarUsb">
|
|
</div>`;
|
|
};
|
|
|
|
exports.UsbIcon = UsbIcon;
|
|
}(window));
|