aboutsummaryrefslogtreecommitdiff
path: root/src/background/repositories/BrowserSettingRepository.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/repositories/BrowserSettingRepository.js')
-rw-r--r--src/background/repositories/BrowserSettingRepository.js8
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);
+ }
+}