aboutsummaryrefslogtreecommitdiff
path: root/src/content/client/BackgroundClient.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/client/BackgroundClient.ts')
-rw-r--r--src/content/client/BackgroundClient.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/content/client/BackgroundClient.ts b/src/content/client/BackgroundClient.ts
new file mode 100644
index 0000000..2fe8d01
--- /dev/null
+++ b/src/content/client/BackgroundClient.ts
@@ -0,0 +1,11 @@
+import * as operations from '../../shared/operations';
+import * as messages from '../../shared/messages';
+
+export default class BackgroundClient {
+ execBackgroundOp(op: operations.Operation): Promise<void> {
+ return browser.runtime.sendMessage({
+ type: messages.BACKGROUND_OPERATION,
+ operation: op,
+ });
+ }
+}