From 1666e626b0d90a53399bf2e79e47b486dbca795c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 20 May 2019 22:21:31 +0900 Subject: Use TSyringe on content script --- src/content/client/BackgroundClient.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/content/client') 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 { return browser.runtime.sendMessage({ -- cgit v1.2.3