Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
36 lines
771 B
JavaScript
Executable file
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));
|