Open options page on banner click
This commit is contained in:
parent
07bcc15e7b
commit
34bd084a4d
2 changed files with 13 additions and 2 deletions
|
@ -30,7 +30,9 @@ export default class SettingUseCase {
|
|||
try {
|
||||
value = data.toSettings();
|
||||
} catch (e) {
|
||||
this.notifyPresenter.notifyInvalidSettings();
|
||||
this.notifyPresenter.notifyInvalidSettings(() => {
|
||||
browser.runtime.openOptionsPage();
|
||||
});
|
||||
value = DefaultSettingData.toSettings();
|
||||
}
|
||||
this.settingRepository.update(value!!);
|
||||
|
|
Reference in a new issue