Capitalize background scripts
This commit is contained in:
parent
21788740c1
commit
a26d8a8a1b
50 changed files with 247 additions and 245 deletions
18
src/background/controllers/SettingController.js
Normal file
18
src/background/controllers/SettingController.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
import SettingUseCase from '../usecases/SettingUseCase';
|
||||
import ContentMessageClient from '../infrastructures/ContentMessageClient';
|
||||
|
||||
export default class SettingController {
|
||||
constructor() {
|
||||
this.settingUseCase = new SettingUseCase();
|
||||
this.contentMessageClient = new ContentMessageClient();
|
||||
}
|
||||
|
||||
getSetting() {
|
||||
return this.settingUseCase.get();
|
||||
}
|
||||
|
||||
async reload() {
|
||||
await this.settingUseCase.reload();
|
||||
this.contentMessageClient.broadcastSettingsChanged();
|
||||
}
|
||||
}
|
Reference in a new issue