1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

FAQ link added

This commit is contained in:
nobody
2020-07-05 08:50:34 +02:00
parent 0b132643a5
commit f8644171a6
2 changed files with 9 additions and 0 deletions

View File

@ -93,6 +93,7 @@ options._renderOptionsPanel = function () {
document.getElementById('link-welcome-page').addEventListener('click', options._onClickWelcomePage);
document.getElementById('link-changelog').addEventListener('click', options._onClickChangelog);
document.getElementById('link-donate').addEventListener('click', options._onClickDonate);
document.getElementById('link-faq').addEventListener('click', options._onClickFaq);
};
options._renderBlockMissingNotice = function () {
@ -349,6 +350,13 @@ options._onClickChangelog = function() {
});
};
options._onClickFaq = function() {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/help/help.html'),
'active': true
});
};
/**
* Updates the domain lists if the options page has no focus.
* document.hasFocus() prevents problems with keyboard input.