From 6f50c5cbfb5b5d1750c437cc5d7dd2b34cba66ba Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 3 Aug 2020 15:07:46 +0100 Subject: [PATCH] lint --- src/components/toast/toast.js | 2 -- src/components/upnextdialog/upnextdialog.js | 1 - 2 files changed, 3 deletions(-) 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);