forked from XimeX/usrspace-browser-addon
open usrspace.at homepage on install
This commit is contained in:
parent
60c367521e
commit
c216676084
|
@ -2,6 +2,14 @@ import { REFRESH_TIMEOUT, API_URLS, BADGE_COLORS } from './config.js';
|
|||
|
||||
document.querySelector('html').setAttribute('lang', browser.i18n.getUILanguage());
|
||||
|
||||
browser.runtime.onInstalled.addListener(async (details) => {
|
||||
if (details.reason === 'install') {
|
||||
await browser.tabs.create({
|
||||
url: 'https://www.usrspace.at/',
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @param {string} url
|
||||
* @returns {Promise<any>}
|
||||
|
|
Loading…
Reference in a new issue