From 9281cfb8db3ed6846a54f1be3bab283da98f1f03 Mon Sep 17 00:00:00 2001 From: lxsang Date: Mon, 22 Jun 2020 12:27:02 +0200 Subject: [PATCH] fix some travis bug --- src/core/BaseService.ts | 2 +- src/packages/Syslog/PushNotification.ts | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/core/BaseService.ts b/src/core/BaseService.ts index 3ebf230..5013f54 100644 --- a/src/core/BaseService.ts +++ b/src/core/BaseService.ts @@ -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(); } diff --git a/src/packages/Syslog/PushNotification.ts b/src/packages/Syslog/PushNotification.ts index ff79eda..9d024d5 100644 --- a/src/packages/Syslog/PushNotification.ts +++ b/src/packages/Syslog/PushNotification.ts @@ -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 // 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();