Add matrix link and fix help button

This commit is contained in:
Ajay Ramachandran
2020-12-12 19:07:15 -05:00
parent 637dcbee00
commit a150a97991
3 changed files with 7 additions and 2 deletions

View File

@@ -127,8 +127,10 @@
<footer id="sbFooter"> <footer id="sbFooter">
<a href="https://sponsor.ajay.app" target="_blank" rel="noopener">Website</a> | <a href="https://sponsor.ajay.app" target="_blank" rel="noopener">Website</a> |
<a href="https://sponsor.ajay.app/stats" target="_blank" rel="noopener">__MSG_viewLeaderboard__</a> | <a href="https://sponsor.ajay.app/stats" target="_blank" rel="noopener">__MSG_viewLeaderboard__</a> |
<a href="https://github.com/ajayyy/SponsorBlock" target="_blank" rel="noopener">GitHub</a> | <a href="https://github.com/ajayyy/SponsorBlock" target="_blank" rel="noopener">GitHub</a>
<br/>
<a href="https://discord.gg/QnmVMpU" target="_blank" rel="noopener">Discord</a> | <a href="https://discord.gg/QnmVMpU" target="_blank" rel="noopener">Discord</a> |
<a href="https://matrix.to/#/+sponsorblock:ajay.app" target="_blank" rel="noopener">Matrix</a> |
<a id="helpButton" href="#">__MSG_help__</a> <a id="helpButton" href="#">__MSG_help__</a>
</footer> </footer>
</div> </div>

View File

@@ -31,6 +31,9 @@ chrome.runtime.onMessage.addListener(function (request, sender, callback) {
case "openConfig": case "openConfig":
chrome.runtime.openOptionsPage(); chrome.runtime.openOptionsPage();
return; return;
case "openHelp":
window.open(chrome.runtime.getURL('help/index_en.html'));
return;
case "sendRequest": case "sendRequest":
sendRequestToCustomServer(request.type, request.url, request.data).then(async (response) => { sendRequestToCustomServer(request.type, request.url, request.data).then(async (response) => {
callback({ callback({

View File

@@ -830,7 +830,7 @@ async function runThePopup(messageListener?: MessageListener) {
} }
function openHelp() { function openHelp() {
window.open(chrome.runtime.getURL('help/index_en.html')); chrome.runtime.sendMessage({"message": "openHelp"});
} }
//make the options username setting option visible //make the options username setting option visible