ctrl+w=close window & minor fixes
This commit is contained in:
parent
97c504e79a
commit
e1eb6b5df1
5 changed files with 26 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue