diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 0287567..4c50ca0 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -18775,6 +18775,8 @@ class PlayController { } }); if (lodash.isEmpty(foundResult)) { + // eslint-disable-next-line no-alert + alert(`Title ${search} not found in Kodi.`); throw Error(`Title ${search} not found in Kodi.`); } return foundResult; diff --git a/src/modules/PlayController.ts b/src/modules/PlayController.ts index 22cbce9..e3ecde6 100644 --- a/src/modules/PlayController.ts +++ b/src/modules/PlayController.ts @@ -1,5 +1,6 @@ /* eslint-disable consistent-return */ /* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-env browser */ import { HomeAssistant } from 'custom-card-helpers'; import _ from 'lodash'; import axios from 'axios'; @@ -51,6 +52,8 @@ class PlayController { } }); if (_.isEmpty(foundResult)) { + // eslint-disable-next-line no-alert + alert(`Title ${search} not found in Kodi.`); throw Error(`Title ${search} not found in Kodi.`); } return foundResult;