diff options
Diffstat (limited to 'src/content/client')
-rw-r--r-- | src/content/client/OperationClient.ts (renamed from src/content/client/BackgroundClient.ts) | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/content/client/BackgroundClient.ts b/src/content/client/OperationClient.ts index 4a41184..d699fec 100644 --- a/src/content/client/BackgroundClient.ts +++ b/src/content/client/OperationClient.ts @@ -1,9 +1,11 @@ -import { injectable } from 'tsyringe'; import * as operations from '../../shared/operations'; import * as messages from '../../shared/messages'; -@injectable() -export default class BackgroundClient { +export default interface OperationClient { + execBackgroundOp(op: operations.Operation): Promise<void>; +} + +export class OperationClientImpl implements OperationClient { execBackgroundOp(op: operations.Operation): Promise<void> { return browser.runtime.sendMessage({ type: messages.BACKGROUND_OPERATION, |