refactor(ServicesToaster): add more checks when suppressing trakt addon installed error

This commit is contained in:
Tim 2022-12-29 10:11:35 +01:00
parent 758347076a
commit d1819f4bd6

View file

@ -19,7 +19,7 @@ const ServicesToaster = () => {
break;
}
if (args.source.event === 'AddonInstalled' && args.source.args.transport_url.startsWith('https://www.strem.io/trakt/addon')) {
if (args.error.type === 'Other' && args.error.code === 3 && args.source.event === 'AddonInstalled' && args.source.args.transport_url.startsWith('https://www.strem.io/trakt/addon')) {
break;
}