aboutsummaryrefslogtreecommitdiff
path: root/src/content/client/BackgroundClient.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-20 22:21:31 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-21 20:30:37 +0900
commit1666e626b0d90a53399bf2e79e47b486dbca795c (patch)
treedc49a80f02bdec71639e5389c25e96a14835c856 /src/content/client/BackgroundClient.ts
parent71f3a1ea2d3d648db9f628bb1deddc41263ab438 (diff)
Use TSyringe on content script
Diffstat (limited to 'src/content/client/BackgroundClient.ts')
-rw-r--r--src/content/client/BackgroundClient.ts2
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({