fix popup saying undefined

This commit is contained in:
ThaUnknown 2022-03-26 11:29:52 +01:00
parent dc813fcdf9
commit e166e79b01
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "0.12.4",
"version": "0.12.5",
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"main": "src/index.js",
"homepage": "https://github.com/ThaUnknown/miru#readme",

View file

@ -29,7 +29,7 @@
addToast({
text: 'Failed fetching RSS!<br>' + error,
title: 'Search Failed',
alertType: 'danger'
type: 'danger'
})
console.error(error)
})
@ -79,7 +79,7 @@
const nodes = (await getRSSContent(url)).querySelectorAll('item')
if (!nodes.length) {
addToast({
content: `Couldn't find torrent for ${media.title.userPreferred} Episode ${parseInt(episode)}! Try specifying a torrent manually.`,
text: `Couldn't find torrent for ${media.title.userPreferred} Episode ${parseInt(episode)}! Try specifying a torrent manually.`,
title: 'Search Failed',
type: 'danger'
})