1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-13 17:34:07 +02:00
This commit is contained in:
Lars Jung
2016-06-24 01:11:26 +02:00
parent c3cd171785
commit 0b8d7e5343
2 changed files with 5 additions and 6 deletions

View File

@@ -1,14 +1,13 @@
const {win, lo} = require('../globals'); const {win} = require('../globals');
const {request} = require('../server'); const {request} = require('../server');
const allsettings = require('./settings'); const allsettings = require('./settings');
const event = require('./event'); const event = require('./event');
const notification = require('../view/notification');
const each = (obj, fn) => Object.keys(obj).forEach(key => fn(obj[key], key)); const each = (obj, fn) => Object.keys(obj).forEach(key => fn(obj[key], key));
const values = obj => Object.keys(obj).map(key => obj[key]); const values = obj => Object.keys(obj).map(key => obj[key]);
const isFn = x => typeof x === 'function'; const isFn = x => typeof x === 'function';
const difference = (...args) => lo.difference(...args); const difference = (arr1, arr2) => arr1.filter(x => arr2.indexOf(x) < 0);
const notification = require('../view/notification');
const doc = win.document; const doc = win.document;
const settings = Object.assign({ const settings = Object.assign({

View File

@@ -150,8 +150,8 @@ const onLogout = () => {
}).then(reload); }).then(reload);
}; };
const onKeydown = event => { const onKeydown = ev => {
if (event.which === 13) { if (ev.which === 13) {
onLogin(); onLogin();
} }
}; };