diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-25 21:33:33 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-25 21:33:33 +0900 |
commit | ccbe08cf66e16084c919f0b2fa2da81258c01d41 (patch) | |
tree | 3257d852aeae93e4dc84fd3cabb63ebeefef326d /src/content/client | |
parent | 03370301a7509af4bbc96d60269598bf89c71fe4 (diff) |
Repeat last operation
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, |