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
24
gaia/apps/calendar/js/worker/initialize.js
Executable file
24
gaia/apps/calendar/js/worker/initialize.js
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* The way that the current caldav library works,
|
||||
* we need to preconfigure some global state :/.
|
||||
*/
|
||||
define(function(require, exports, module) {
|
||||
'use strict';
|
||||
|
||||
var Thread = require('./thread');
|
||||
var debug = require('common/debug')('worker/initialize');
|
||||
|
||||
self.window = self;
|
||||
|
||||
module.exports = function() {
|
||||
var thread = self.thread = new Thread(window);
|
||||
thread.addRole('caldav');
|
||||
window.console = new thread.console('worker');
|
||||
require(['service/caldav'], (CaldavService) => {
|
||||
// Lazily loaded so that we can prime environment first.
|
||||
debug('Will create new caldav service...');
|
||||
self.caldav = new CaldavService(thread.roles.caldav);
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
Loading…
Reference in a new issue