diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-19 21:34:08 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-19 21:34:08 +0900 |
commit | cdfd54ed99087dc4a7a3fd13865849ff9ce9e8ba (patch) | |
tree | ca18790151d4e6cf003367f0dd87c27371d2b2c8 /src/background/repositories/BrowserSettingRepository.ts | |
parent | c7803e7c2911f63e43611290b996f526c0f8aaf2 (diff) |
Use TSyringe on background script
Diffstat (limited to 'src/background/repositories/BrowserSettingRepository.ts')
-rw-r--r-- | src/background/repositories/BrowserSettingRepository.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/background/repositories/BrowserSettingRepository.ts b/src/background/repositories/BrowserSettingRepository.ts index 33b35dd..9cfb35e 100644 --- a/src/background/repositories/BrowserSettingRepository.ts +++ b/src/background/repositories/BrowserSettingRepository.ts @@ -1,3 +1,4 @@ +import { injectable } from 'tsyringe'; import * as urls from '../../shared/urls'; declare namespace browser.browserSettings.homepageOverride { @@ -16,6 +17,7 @@ declare namespace browser.browserSettings.homepageOverride { function get(param: object): Promise<BrowserSettings>; } +@injectable() export default class BrowserSettingRepository { async getHomepageUrls(): Promise<string[]> { let { value } = await browser.browserSettings.homepageOverride.get({}); |