aboutsummaryrefslogtreecommitdiff
path: root/src/content/reducers/setting.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-07 20:50:19 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-07 21:08:21 +0900
commit27d0a7f37d24a0ad68a8ccb7dee18fc1d00eea58 (patch)
tree2c7708ca91ac2b462cc86aa28612e3d3943496f3 /src/content/reducers/setting.ts
parent8ae1311ef69782ad6c8a313e49946152abf9d222 (diff)
Use search settings on paster
Diffstat (limited to 'src/content/reducers/setting.ts')
-rw-r--r--src/content/reducers/setting.ts13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/content/reducers/setting.ts b/src/content/reducers/setting.ts
index a3dc3aa..9ca1380 100644
--- a/src/content/reducers/setting.ts
+++ b/src/content/reducers/setting.ts
@@ -1,20 +1,20 @@
import * as actions from '../actions';
import * as keyUtils from '../../shared/utils/keys';
import * as operations from '../../shared/operations';
-import { Properties } from '../../shared/Settings';
+import { Search, Properties, DefaultSetting } from '../../shared/Settings';
export interface State {
keymaps: { key: keyUtils.Key[], op: operations.Operation }[];
+ search: Search;
properties: Properties;
}
+// defaultState does not refer due to the state is load from
+// background on load.
const defaultState: State = {
keymaps: [],
- properties: {
- complete: '',
- smoothscroll: false,
- hintchars: '',
- },
+ search: DefaultSetting.search,
+ properties: DefaultSetting.properties,
};
export default function reducer(
@@ -31,6 +31,7 @@ export default function reducer(
};
}),
properties: action.settings.properties,
+ search: action.settings.search,
};
default:
return state;