ctrl+w=close window & minor fixes

This commit is contained in:
bordun 2020-03-12 11:01:59 +01:00
parent 97c504e79a
commit e1eb6b5df1
5 changed files with 26 additions and 19 deletions

View file

@ -1,6 +1,4 @@
var html = require('nanohtml'),
UiModal = require('./ui-modal'),
notifications = require('./notifications'),
var notifications = require('./notifications'),
loading = null, timeout = null
module.exports = function uiLoading(title) {
@ -8,7 +6,6 @@ module.exports = function uiLoading(title) {
if (title === false && loading) {
clearTimeout(timeout)
timeout = setTimeout(()=>{
console.log('stop')
notifications.remove(loading)
loading = null
}, 500)