You've already forked bilibili-subtitle
fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { MESSAGE_TARGET_EXTENSION, MESSAGE_TARGET_INJECT, MESSAGE_TO_EXTENSION_ROUTE_MSG } from '@/const'
|
||||
import { MESSAGE_TARGET_EXTENSION, MESSAGE_TO_EXTENSION_ROUTE_MSG } from '@/consts/const'
|
||||
import PortMessageHandler from './PortMessageHandler'
|
||||
|
||||
export type PortContext = {
|
||||
|
@@ -1,5 +1,4 @@
|
||||
import { MESSAGE_TARGET_APP, MESSAGE_TARGET_EXTENSION, MESSAGE_TARGET_INJECT, MESSAGE_TO_EXTENSION_ROUTE_MSG } from '@/const'
|
||||
import { PostMessagePayload, PostMessageResponse, startListening } from 'postmessage-promise'
|
||||
import { MESSAGE_TARGET_APP, MESSAGE_TARGET_EXTENSION, MESSAGE_TARGET_INJECT, MESSAGE_TO_EXTENSION_ROUTE_MSG } from '@/consts/const'
|
||||
import PortMessageHandler from './PortMessageHandler'
|
||||
|
||||
class InjectMessage {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { MESSAGE_TARGET_EXTENSION, MESSAGE_TARGET_INJECT, MESSAGE_TO_EXTENSION_ROUTE_MSG } from '@/const'
|
||||
import { MESSAGE_TARGET_EXTENSION, MESSAGE_TARGET_INJECT, MESSAGE_TO_EXTENSION_ROUTE_MSG } from '@/consts/const'
|
||||
import { injectWaiter } from './useMessageService'
|
||||
import { useCallback } from 'react'
|
||||
import PortMessageHandler from './PortMessageHandler'
|
||||
|
@@ -1,10 +1,7 @@
|
||||
import { useCallback, useEffect, useMemo } from 'react'
|
||||
import { useCallback, useMemo } from 'react'
|
||||
import {
|
||||
MESSAGE_TARGET_APP,
|
||||
MESSAGE_TARGET_EXTENSION,
|
||||
MESSAGE_TARGET_INJECT,
|
||||
} from '@/const'
|
||||
import { callServer, PostMessagePayload, PostMessageResponse } from 'postmessage-promise'
|
||||
} from '@/consts/const'
|
||||
import { Waiter } from '@kky002/kky-util'
|
||||
import PortMessageHandler from './PortMessageHandler'
|
||||
|
||||
|
Reference in New Issue
Block a user