diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-20 22:21:31 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-21 20:30:37 +0900 |
commit | 1666e626b0d90a53399bf2e79e47b486dbca795c (patch) | |
tree | dc49a80f02bdec71639e5389c25e96a14835c856 /src/content/client/BackgroundClient.ts | |
parent | 71f3a1ea2d3d648db9f628bb1deddc41263ab438 (diff) |
Use TSyringe on content script
Diffstat (limited to 'src/content/client/BackgroundClient.ts')
-rw-r--r-- | src/content/client/BackgroundClient.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content/client/BackgroundClient.ts b/src/content/client/BackgroundClient.ts index 2fe8d01..4a41184 100644 --- a/src/content/client/BackgroundClient.ts +++ b/src/content/client/BackgroundClient.ts @@ -1,6 +1,8 @@ +import { injectable } from 'tsyringe'; import * as operations from '../../shared/operations'; import * as messages from '../../shared/messages'; +@injectable() export default class BackgroundClient { execBackgroundOp(op: operations.Operation): Promise<void> { return browser.runtime.sendMessage({ |