mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Cleanup __APP__/getApp code
This commit is contained in:
parent
29cf711a6a
commit
b904eca98e
34 changed files with 86 additions and 146 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import { data as GlobalsData } from 'Common/Globals';
|
||||
|
||||
const USER_VIEW_MODELS_HOOKS = [],
|
||||
ADMIN_VIEW_MODELS_HOOKS = [];
|
||||
|
||||
|
|
@ -18,8 +16,8 @@ export function mainSettingsGet(name) {
|
|||
* @param {?number=} timeout
|
||||
*/
|
||||
export function remoteRequest(callback, action, parameters, timeout) {
|
||||
if (GlobalsData.__APP__) {
|
||||
GlobalsData.__APP__.remote().defaultRequest(callback, 'Plugin' + action, parameters, timeout);
|
||||
if (rl.app) {
|
||||
rl.app.remote().defaultRequest(callback, 'Plugin' + action, parameters, timeout);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue