mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-29 13:01:49 +01:00
Update src/pages/parts/player/ScrapeErrorPart.tsx
Co-authored-by: William Oldham <github@binaryoverload.co.uk>
This commit is contained in:
parent
a62c288e1c
commit
c220f937bb
@ -51,10 +51,6 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getExtensionState().then((state: ExtensionStatus) => {
|
getExtensionState().then((state: ExtensionStatus) => {
|
||||||
setExtensionState(state);
|
setExtensionState(state);
|
||||||
if (state === "disallowed") {
|
|
||||||
setTitle(t("player.scraping.extensionFailure.disabledTitle"));
|
|
||||||
setIcon(Icons.LOCK);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}, [t]);
|
}, [t]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user