diff options
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/controllers/OperationController.ts | 8 | ||||
-rw-r--r-- | src/background/infrastructures/ContentMessageListener.ts | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/background/controllers/OperationController.ts b/src/background/controllers/OperationController.ts index 69b45c3..2f5d4a6 100644 --- a/src/background/controllers/OperationController.ts +++ b/src/background/controllers/OperationController.ts @@ -21,8 +21,8 @@ export default class OperationController { ) { } - async exec(count: number, op: operations.Operation): Promise<any> { - await this.doOperation(count, op); + async exec(repeat: number, op: operations.Operation): Promise<any> { + await this.doOperation(repeat, op); if (this.repeatUseCase.isRepeatable(op)) { this.repeatUseCase.storeLastOperation(op); } @@ -30,7 +30,7 @@ export default class OperationController { // eslint-disable-next-line complexity, max-lines-per-function async doOperation( - count: number, + repeat: number, operation: operations.Operation, ): Promise<any> { // eslint-disable-next-line complexity, max-lines-per-function @@ -119,7 +119,7 @@ export default class OperationController { } })(); - for (let i = 0; i < count; ++i) { + for (let i = 0; i < repeat; ++i) { // eslint-disable-next-line no-await-in-loop await opFunc(); } diff --git a/src/background/infrastructures/ContentMessageListener.ts b/src/background/infrastructures/ContentMessageListener.ts index 51a9f82..f20340b 100644 --- a/src/background/infrastructures/ContentMessageListener.ts +++ b/src/background/infrastructures/ContentMessageListener.ts @@ -80,7 +80,7 @@ export default class ContentMessageListener { senderTab.id as number, message.background); case messages.BACKGROUND_OPERATION: - return this.onBackgroundOperation(message.count, message.operation); + return this.onBackgroundOperation(message.repeat, message.operation); case messages.MARK_SET_GLOBAL: return this.onMarkSetGlobal(message.key, message.x, message.y); case messages.MARK_JUMP_GLOBAL: |