diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-24 22:20:37 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-24 22:39:46 +0900 |
commit | f707f4da75652b4c344df9346a34e8010a044006 (patch) | |
tree | c0f821c79bdc00bec730e853e1cea2a696a1f74f /src/background/repositories/BrowserSettingRepository.js | |
parent | a880d5684b35235436f571e5fd8e9f857bf30434 (diff) |
Clean classes and repository
Diffstat (limited to 'src/background/repositories/BrowserSettingRepository.js')
-rw-r--r-- | src/background/repositories/BrowserSettingRepository.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/background/repositories/BrowserSettingRepository.js b/src/background/repositories/BrowserSettingRepository.js new file mode 100644 index 0000000..a9d2c06 --- /dev/null +++ b/src/background/repositories/BrowserSettingRepository.js @@ -0,0 +1,8 @@ +import * as urls from '../../shared/urls'; + +export default class BrowserSettingRepository { + async getHomepageUrls() { + let { value } = await browser.browserSettings.homepageOverride.get({}); + return value.split('|').map(urls.normalizeUrl); + } +} |