blob: e24874b32a5b873bf096781f133919966ef41b74 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { injectable } from "tsyringe";
import * as urls from "../../shared/urls";
@injectable()
export default class BrowserSettingRepository {
async getHomepageUrls(): Promise<string[]> {
const { value } = await browser.browserSettings.homepageOverride.get({});
return value.split("|").map(urls.normalizeUrl);
}
}
|