-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCliqz.js
More file actions
28 lines (28 loc) · 765 Bytes
/
Copy pathCliqz.js
File metadata and controls
28 lines (28 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export default class Cliqz {
constructor(app, actions) {
this.app = app;
this.app.modules['ui'] = {
status() {
return {
name: 'ui',
isEnabled: true,
loadingTime: 0,
loadingTimeSync: 0,
windows: [],
state: {},
};
},
name: 'ui',
action(action, ...args) {
return Promise.resolve().then(() => {
return actions[action](...args);
});
},
isEnabled: true,
};
this.mobileCards = app.modules['mobile-cards'].background.actions;
this.geolocation = app.modules['geolocation'].background.actions;
this.search = app.modules['search'].background.actions;
this.core = app.modules['core'].background.actions;
}
}