mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-13 17:34:07 +02:00
Minor.
This commit is contained in:
@@ -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({
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user