mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 18:13:25 +00:00
Functionality and state for popout
This commit is contained in:
@@ -2,7 +2,7 @@ import type { PlasmoMessaging } from '@plasmohq/messaging';
|
||||
|
||||
import type { BaseRequest } from '~types/request';
|
||||
import type { BaseResponse } from '~types/response';
|
||||
import { validateDomainWhiteList } from '~utils/storage';
|
||||
import { assertDomainWhitelist } from '~utils/storage';
|
||||
|
||||
type Response = BaseResponse<{
|
||||
version: string;
|
||||
@@ -10,7 +10,7 @@ type Response = BaseResponse<{
|
||||
|
||||
const handler: PlasmoMessaging.MessageHandler<BaseRequest, Response> = async (req, res) => {
|
||||
try {
|
||||
await validateDomainWhiteList(req.body.requestDomain);
|
||||
await assertDomainWhitelist(req.body.requestDomain);
|
||||
|
||||
const version = chrome.runtime.getManifest().version;
|
||||
|
||||
|
Reference in New Issue
Block a user