diff --git a/src/popup/components/Header.tsx b/src/popup/components/Header.tsx index 6055909b..314b2796 100644 --- a/src/popup/components/Header.tsx +++ b/src/popup/components/Header.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import browser from 'webextension-polyfill'; +import browser, { type Permissions } from 'webextension-polyfill'; import { useLocation } from 'react-router-dom'; import { ClassValue } from 'clsx'; import { LucideIcon, RotateCcw } from 'lucide-react'; @@ -7,6 +7,7 @@ import { Link } from 'react-router-dom'; import { ArrowLeft, List, Settings } from 'lucide-react'; import remote from '@/remote'; import { Button } from './ui/button'; +import { askOriginPermissions } from '@/utils'; type iconProps = { to: string; @@ -41,24 +42,30 @@ const HeaderIcon = (props: iconProps) => { const Banner = (props: BannerProps) => { if (!props.remoteAvailable) return ( -