Update 0BDFDB.plugin.js
This commit is contained in:
parent
5de75a47f5
commit
7c9bb4dea9
|
@ -1299,13 +1299,6 @@ module.exports = (_ => {
|
||||||
notification.close();
|
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 = _ => {
|
notification.onclose = _ => {
|
||||||
BDFDB.TimeUtils.clear(closeTimeout);
|
BDFDB.TimeUtils.clear(closeTimeout);
|
||||||
audio.pause();
|
audio.pause();
|
||||||
|
|
Loading…
Reference in New Issue