mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Made eslint using 'browser' environment and added globals, because RainLoop is used in browsers.
This also allowed to remove all webpack 'externals' overhead.
This commit is contained in:
parent
c3a213802d
commit
e7180a86ce
81 changed files with 1857 additions and 1259 deletions
|
|
@ -1,6 +1,3 @@
|
|||
import crossroads from 'crossroads';
|
||||
import { isNonEmptyArray } from 'Common/Utils';
|
||||
|
||||
export class AbstractScreen {
|
||||
oCross = null;
|
||||
sScreenName;
|
||||
|
|
@ -47,9 +44,9 @@ export class AbstractScreen {
|
|||
fMatcher = null;
|
||||
const routes = this.routes();
|
||||
|
||||
if (isNonEmptyArray(routes)) {
|
||||
if (Array.isArray(routes) && routes.length) {
|
||||
fMatcher = (this.onRoute || (()=>{})).bind(this);
|
||||
route = crossroads.create();
|
||||
route = new Crossroads();
|
||||
|
||||
routes.forEach((item) => {
|
||||
if (item && route) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue