Keymaps as a clean architecture [WIP]
This commit is contained in:
parent
a88324acd9
commit
efc48dc742
15 changed files with 620 additions and 88 deletions
11
src/content/client/BackgroundClient.ts
Normal file
11
src/content/client/BackgroundClient.ts
Normal file
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
Reference in a new issue