VulpesOS/gaia/apps/system/js/remote/app.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

36 lines
771 B
JavaScript
Executable file

/* global BaseModule */
'use strict';
(function(exports) {
var App = function() {
};
App.SUB_MODULES = [
'WallpaperManager',
'remote/RemoteAppWindowManager',
'remote/MessageController'
];
App.STATES = [
'displayId'
];
BaseModule.create(App, {
DEBUG: false,
name: 'App',
displayId: function() {
return this._displayId;
},
_start: function() {
// The displayId is assigned by shell_remote.js. It should be unique and
// indicates the display which the current instance is associated with in
// Gecko.
this._displayId = window.location.hash ?
parseInt(window.location.hash.substring(1), 10) :
-1;
this.debug('displayId: ' + this._displayId);
}
});
}(window));