VulpesOS/assets/webapps/system.gaiamobile.org/js/debugging_monitor.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
661 B
JavaScript

/* global BaseModule, DebuggingIcon, LazyLoader */
'use strict';
(function() {
var DebuggingMonitor = function() {};
DebuggingMonitor.SETTINGS = [
'debugger.remote-mode'
];
BaseModule.create(DebuggingMonitor, {
name: 'DebuggingMonitor',
_start: function() {
LazyLoader.load(['js/debugging_icon.js']).then(function() {
this.icon = new DebuggingIcon(this);
this.icon.start();
}.bind(this)).catch(function(err) {
console.error(err);
});
},
'_observe_debugger.remote-mode': function(value) {
this.enabled = (value !== 'disabled');
this.icon && this.icon.update();
}
});
}());