mirror of
https://github.com/thedevs-network/kutt-extension.git
synced 2026-02-03 13:53:23 +00:00
chore: open options page if no api key is set
This commit is contained in:
@@ -9,6 +9,7 @@ import PopupHeader from './Header';
|
||||
import PopupBody, { ProcessedRequestProperties } from './PopupBody';
|
||||
|
||||
import './styles.scss';
|
||||
import { openExtOptionsPage } from '../util/tabs';
|
||||
|
||||
type DomainOptionsProperties = {
|
||||
option: string;
|
||||
@@ -66,7 +67,11 @@ const Popup: React.FC = () => {
|
||||
setRequestProcessed({ error: true, message: 'Extension requires an API Key to work' });
|
||||
setLoading(false);
|
||||
|
||||
// ToDo: Open options page after slight delay
|
||||
// Open options page
|
||||
setTimeout(() => {
|
||||
return openExtOptionsPage();
|
||||
}, 1300);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user