aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions/operation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/actions/operation.ts')
-rw-r--r--src/content/actions/operation.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/content/actions/operation.ts b/src/content/actions/operation.ts
index 949f69f..f65d0bd 100644
--- a/src/content/actions/operation.ts
+++ b/src/content/actions/operation.ts
@@ -9,14 +9,16 @@ import * as consoleFrames from '../console-frames';
import * as markActions from './mark';
import AddonEnabledUseCase from '../usecases/AddonEnabledUseCase';
+import { SettingRepositoryImpl } from '../repositories/SettingRepository';
let addonEnabledUseCase = new AddonEnabledUseCase();
+let settingRepository = new SettingRepositoryImpl();
// eslint-disable-next-line complexity, max-lines-per-function
const exec = async(
operation: operations.Operation,
- settings: any,
): Promise<actions.Action> => {
+ let settings = settingRepository.get();
let smoothscroll = settings.properties.smoothscroll;
switch (operation.type) {
case operations.ADDON_ENABLE:
@@ -97,7 +99,8 @@ const exec = async(
break;
case operations.URLS_PASTE:
urls.paste(
- window, operation.newTab ? operation.newTab : false, settings.search
+ window, operation.newTab ? operation.newTab : false,
+ settings.search,
);
break;
default: