aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-07-04 13:29:42 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-07-04 13:29:42 +0900
commit6b88c15d1a6193cd090c5a1ae9b6ea06a467e171 (patch)
treee1b78080d8e10477007c9379b57a6213e6f72c6a /src/background
parent5904eeff1a75dcf83bcef7d5666a7473cc5b77de (diff)
yarn lint:fix
Diffstat (limited to 'src/background')
-rw-r--r--src/background/infrastructures/ContentMessageClient.ts2
-rw-r--r--src/background/operators/impls/CommandOperatorFactoryChain.ts3
-rw-r--r--src/background/operators/impls/InternalOperatorFactoryChain.ts3
-rw-r--r--src/background/operators/impls/NavigateOperatorFactoryChain.ts3
-rw-r--r--src/background/operators/impls/RepeatOperatorFactoryChain.ts3
-rw-r--r--src/background/presenters/ZoomPresenter.ts15
6 files changed, 10 insertions, 19 deletions
diff --git a/src/background/infrastructures/ContentMessageClient.ts b/src/background/infrastructures/ContentMessageClient.ts
index e889392..8c00626 100644
--- a/src/background/infrastructures/ContentMessageClient.ts
+++ b/src/background/infrastructures/ContentMessageClient.ts
@@ -19,7 +19,7 @@ export default class ContentMessageClient {
const enabled = await browser.tabs.sendMessage(tabId, {
type: messages.ADDON_ENABLED_QUERY,
});
- return (enabled as any) as boolean;
+ return enabled as any as boolean;
}
async toggleAddonEnabled(tabId: number): Promise<void> {
diff --git a/src/background/operators/impls/CommandOperatorFactoryChain.ts b/src/background/operators/impls/CommandOperatorFactoryChain.ts
index 680a384..9408a4b 100644
--- a/src/background/operators/impls/CommandOperatorFactoryChain.ts
+++ b/src/background/operators/impls/CommandOperatorFactoryChain.ts
@@ -14,7 +14,8 @@ import StartFindOperator from "./StartFindOperator";
@injectable()
export default class CommandOperatorFactoryChain
- implements OperatorFactoryChain {
+ implements OperatorFactoryChain
+{
constructor(
@inject("TabPresenter")
private readonly tabPresenter: TabPresenter,
diff --git a/src/background/operators/impls/InternalOperatorFactoryChain.ts b/src/background/operators/impls/InternalOperatorFactoryChain.ts
index 05615f6..00e8faf 100644
--- a/src/background/operators/impls/InternalOperatorFactoryChain.ts
+++ b/src/background/operators/impls/InternalOperatorFactoryChain.ts
@@ -10,7 +10,8 @@ import * as operations from "../../../shared/operations";
@injectable()
export default class InternalOperatorFactoryChain
- implements OperatorFactoryChain {
+ implements OperatorFactoryChain
+{
constructor(
@inject("WindowPresenter")
private readonly windowPresenter: WindowPresenter,
diff --git a/src/background/operators/impls/NavigateOperatorFactoryChain.ts b/src/background/operators/impls/NavigateOperatorFactoryChain.ts
index 618db45..ce36e80 100644
--- a/src/background/operators/impls/NavigateOperatorFactoryChain.ts
+++ b/src/background/operators/impls/NavigateOperatorFactoryChain.ts
@@ -16,7 +16,8 @@ import * as operations from "../../../shared/operations";
@injectable()
export default class NavigateOperatorFactoryChain
- implements OperatorFactoryChain {
+ implements OperatorFactoryChain
+{
constructor(
@inject("TabPresenter")
private readonly tabPresenter: TabPresenter,
diff --git a/src/background/operators/impls/RepeatOperatorFactoryChain.ts b/src/background/operators/impls/RepeatOperatorFactoryChain.ts
index 5038d48..a931209 100644
--- a/src/background/operators/impls/RepeatOperatorFactoryChain.ts
+++ b/src/background/operators/impls/RepeatOperatorFactoryChain.ts
@@ -8,7 +8,8 @@ import * as operations from "../../../shared/operations";
@injectable()
export default class RepeatOperatorFactoryChain
- implements OperatorFactoryChain {
+ implements OperatorFactoryChain
+{
constructor(
@inject("RepeatRepository")
private readonly repeatRepository: RepeatRepository,
diff --git a/src/background/presenters/ZoomPresenter.ts b/src/background/presenters/ZoomPresenter.ts
index 5a3c64d..31d01c7 100644
--- a/src/background/presenters/ZoomPresenter.ts
+++ b/src/background/presenters/ZoomPresenter.ts
@@ -1,18 +1,5 @@
const ZOOM_SETTINGS = [
- 0.33,
- 0.5,
- 0.66,
- 0.75,
- 0.8,
- 0.9,
- 1.0,
- 1.1,
- 1.25,
- 1.5,
- 1.75,
- 2.0,
- 2.5,
- 3.0,
+ 0.33, 0.5, 0.66, 0.75, 0.8, 0.9, 1.0, 1.1, 1.25, 1.5, 1.75, 2.0, 2.5, 3.0,
] as const;
export default interface ZoomPresenter {