Change credits link to help.

More detailed credits are at the bottom of help.
This commit is contained in:
Ajay Ramachandran
2020-10-14 22:50:59 -04:00
parent 7a6f65803e
commit a67c972e03
3 changed files with 10 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ async function runThePopup(messageListener?: MessageListener) {
// Options
//"showNoticeAgain",
"optionsButton",
"helpButton",
// More controls
"submitTimes",
//"reportAnIssue",
@@ -130,6 +131,7 @@ async function runThePopup(messageListener?: MessageListener) {
PageElements.setUsernameButton.addEventListener("click", setUsernameButton);
PageElements.submitUsername.addEventListener("click", submitUsername);
PageElements.optionsButton.addEventListener("click", openOptions);
PageElements.helpButton.addEventListener("click", openHelp);
//PageElements.reportAnIssue.addEventListener("click", reportAnIssue);
//PageElements.hideDiscordButton.addEventListener("click", hideDiscordButton);
@@ -826,6 +828,10 @@ async function runThePopup(messageListener?: MessageListener) {
chrome.runtime.sendMessage({"message": "openConfig"});
}
function openHelp() {
window.open(chrome.runtime.getURL('help/index_en.html'));
}
//make the options username setting option visible
function setUsernameButton() {
//get username from the server