aboutsummaryrefslogtreecommitdiff
path: root/src/background/repositories/BrowserSettingRepository.ts
blob: 48c72a515b55303cc749f10aef4cf1dd5f660a51 (plain) (blame)
1
2
3
4
5
6
7
8
import * as urls from '../../shared/urls';

export default class BrowserSettingRepository {
  async getHomepageUrls(): Promise<string[]> {
    let { value } = await browser.browserSettings.homepageOverride.get({});
    return value.split('|').map(urls.normalizeUrl);
  }
}