aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-12-13 03:35:11 +0000
committerGitHub <noreply@github.com>2020-12-13 03:35:11 +0000
commita3e59d5032535cd96303ef1471eb5d2fadec0325 (patch)
treeddfd905680d147e3649b6671f84a030bc3e4e7a2 /src
parent5a0444d7bb7eae27fdca5c2be8fc3ec6c36d53bd (diff)
parenta1008121bf43fe5d17af5402d26e5ec1d2628d21 (diff)
Merge pull request #919 from ueokande/loaded-settings-is-invalid
Fix "loaded settings are invalid"
Diffstat (limited to 'src')
-rw-r--r--src/background/di.ts2
-rw-r--r--src/background/presenters/Notifier.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/background/di.ts b/src/background/di.ts
index efdf363..358ff1e 100644
--- a/src/background/di.ts
+++ b/src/background/di.ts
@@ -20,7 +20,7 @@ import { ZoomPresenterImpl } from "./presenters/ZoomPresenter";
import { WindowPresenterImpl } from "./presenters/WindowPresenter";
container.register("LocalSettingRepository", {
- useValue: LocalSettingRepository,
+ useClass: LocalSettingRepository,
});
container.register("SyncSettingRepository", {
useClass: SyncSettingRepository,
diff --git a/src/background/presenters/Notifier.ts b/src/background/presenters/Notifier.ts
index 2cd3225..957572d 100644
--- a/src/background/presenters/Notifier.ts
+++ b/src/background/presenters/Notifier.ts
@@ -30,10 +30,10 @@ export class NotifierImpl implements NotifierImpl {
}
async notifyInvalidSettings(onclick: () => void): Promise<void> {
- const title = `Loaded settings is invalid`;
+ const title = `Loading settings failed`;
// eslint-disable-next-line max-len
const message =
- "The default settings is used due to the last saved settings is invalid. Check your current settings from the add-on preference";
+ "The default settings are used due to the last saved settings is invalid. Check your current settings from the add-on preference";
const listener = (id: string) => {
if (id !== NOTIFICATION_ID_INVALID_SETTINGS) {