VulpesOS/gaia/apps/system/js/headphone_icon.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

24 lines
697 B
JavaScript
Executable file

/* global BaseIcon */
'use strict';
(function(exports) {
var HeadphoneIcon = function(manager) {
BaseIcon.call(this, manager);
};
HeadphoneIcon.prototype = Object.create(BaseIcon.prototype);
HeadphoneIcon.prototype.name = 'HeadphoneIcon';
HeadphoneIcon.prototype.shouldDisplay = function() {
return this.manager.isHeadsetConnected;
};
HeadphoneIcon.prototype.view = function view() {
return `<div id="statusbar-headphone"
class="sb-icon sb-icon-headphone"
hidden role="listitem"
aria-live="polite"
data-l10n-id="statusbarHeadphone">
</div>`;
};
exports.HeadphoneIcon = HeadphoneIcon;
}(window));