diff --git a/src/components/toast/toast.js b/src/components/toast/toast.js index 1b00c8aa7e..d971880672 100644 --- a/src/components/toast/toast.js +++ b/src/components/toast/toast.js @@ -10,12 +10,10 @@ function animateRemove(elem) { setTimeout(function () { elem.classList.remove('toastVisible'); remove(elem); - }, 3300); } export default function (options) { - if (typeof options === 'string') { options = { text: options diff --git a/src/components/upnextdialog/upnextdialog.js b/src/components/upnextdialog/upnextdialog.js index 1cc7cea642..e28bb03abe 100644 --- a/src/components/upnextdialog/upnextdialog.js +++ b/src/components/upnextdialog/upnextdialog.js @@ -285,7 +285,6 @@ class UpNextDialog { init(this, options); } show() { - const elem = this.options.parent; clearHideAnimationEventListeners(this, elem);