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.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
36
assets/webapps/system.gaiamobile.org/js/remote/app.js
Normal file
36
assets/webapps/system.gaiamobile.org/js/remote/app.js
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* 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));
|
||||
Loading…
Reference in a new issue