From f707f4da75652b4c344df9346a34e8010a044006 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 24 Feb 2019 22:20:37 +0900 Subject: Clean classes and repository --- src/background/repositories/BrowserSettingRepository.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/background/repositories/BrowserSettingRepository.js (limited to 'src/background/repositories') 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); + } +} -- cgit v1.2.3