Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-01-29 18:24:40 +01:00
parent 5de75a47f5
commit 7c9bb4dea9
1 changed files with 0 additions and 7 deletions

View File

@ -1299,13 +1299,6 @@ module.exports = (_ => {
notification.close();
};
if (!data.config.requireInteraction) {
let timeout = typeof data.config.timeout == "number" && !disableInteractions ? data.config.timeout : 5000;
let closeTimeout = BDFDB.TimeUtils.timeout(_ => {
notification.close();
}, timeout > 0 ? timeout : 600000);
}
notification.onclose = _ => {
BDFDB.TimeUtils.clear(closeTimeout);
audio.pause();