Minor.
This commit is contained in:
parent
c3cd171785
commit
0b8d7e5343
2 changed files with 5 additions and 6 deletions
|
@ -1,14 +1,13 @@
|
|||
const {win, lo} = require('../globals');
|
||||
const {win} = require('../globals');
|
||||
const {request} = require('../server');
|
||||
const allsettings = require('./settings');
|
||||
const event = require('./event');
|
||||
const notification = require('../view/notification');
|
||||
|
||||
const each = (obj, fn) => Object.keys(obj).forEach(key => fn(obj[key], key));
|
||||
const values = obj => Object.keys(obj).map(key => obj[key]);
|
||||
const isFn = x => typeof x === 'function';
|
||||
const difference = (...args) => lo.difference(...args);
|
||||
|
||||
const notification = require('../view/notification');
|
||||
const difference = (arr1, arr2) => arr1.filter(x => arr2.indexOf(x) < 0);
|
||||
|
||||
const doc = win.document;
|
||||
const settings = Object.assign({
|
||||
|
|
|
@ -150,8 +150,8 @@ const onLogout = () => {
|
|||
}).then(reload);
|
||||
};
|
||||
|
||||
const onKeydown = event => {
|
||||
if (event.which === 13) {
|
||||
const onKeydown = ev => {
|
||||
if (ev.which === 13) {
|
||||
onLogin();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue