FAQ link added

This commit is contained in:
nobody 2020-07-05 08:50:34 +02:00
parent 0b132643a5
commit f8644171a6
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 9 additions and 0 deletions

View File

@ -170,6 +170,7 @@
<li><a id="link-changelog">Changelog (InApp)</a></li>
<li><a id="link-donate">Donate (InApp)</a></li>
<li><a id="link-codeberg" href="https://codeberg.org/nobody/LocalCDN" target="_blank" rel="nofollow noopener noreferrer">Source-Code (www.codeberg.org)</a></li>
<li><a id="link-faq">FAQ (In-App)</a></li><br>
<li><a id="link-website" href="https://localcdn.de" target="_blank" rel="nofollow noopener noreferrer">Website (www.localcdn.de)</a></li>
<li><a id="link-website-test" href="https://localcdn.de/test" target="_blank" rel="nofollow noopener noreferrer">Test-Sites (www.localcdn.de/test)</a></li>
<li><a id="link-translate" href="https://hosted.weblate.org/projects/localcdn/localcdn/" target="_blank" rel="nofollow noopener noreferrer">Translate (www.weblate.org)</a></li>

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.