i'm currently working on a chrome extension.
i want to show a simple div, or redirect to an error page when third party cookies are disabled. I'm able to use an alert to tell the user to enable third party cookies with
try {
if (window.localStorage) {
console.log('cookies ENABLED');
}
} catch (err) {
alert('Please enable third-party cookies');
return <Redirect push to="/error" />;
}
But i'd love for it to be an actual component or to redirect to component. So far I haven't found anything that works, because it's just blank, so i'm not able to do much.