You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
370 B
JavaScript

2 years ago
function restore_options() {
chrome.storage.local.get('baseURL', function (result) {
if(result && result.baseURL.startsWith('http')) {
document.getElementById('open-stammtv').href = result.baseURL;
} else {
chrome.runtime.openOptionsPage();
}
2 years ago
});
}
document.addEventListener('DOMContentLoaded', restore_options);