browserSettings.homepageOverride
一个 BrowserSetting
对象,可用于获取表示当前设置为浏览器主页的 URL 的字符串。
请注意,这是一个只读设置。要更改主页,请参阅 chrome_settings_overrides。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
homepageOverride |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
示例
获取主页 URL 的当前值:
js
browser.browserSettings.homepageOverride.get({}).then((result) => {
console.log(result.value);
});