fix some travis bug

This commit is contained in:
lxsang 2020-06-22 12:27:02 +02:00
parent 297aecc53c
commit 9281cfb8db
2 changed files with 2 additions and 8 deletions

View File

@ -182,7 +182,7 @@ namespace OS {
if (this.timer) {
clearTimeout(this.timer);
}
return (this.timer = setTimeout(() => func(), t));
return (this.timer = window.setTimeout(() => func(), t));
};
return func();
}

View File

@ -1,9 +1,3 @@
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS208: Avoid top-level this
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
// Copyright 2017-2018 Xuan Sang LE <xsang.le AT gmail DOT com>
// AnTOS Web desktop is is licensed under the GNU General Public
@ -211,7 +205,7 @@ namespace OS {
let timer: number;
this.mfeed.unshift(d);
$(this.fzone).show();
timer = setTimeout(() => {
timer = window.setTimeout(() => {
this.mfeed.delete(d.domel);
if (this.mfeed.data.length === 0) {
$(this.fzone).hide();