Scroll to category in options page

This commit is contained in:
Ajay Ramachandran
2021-05-11 01:09:01 -04:00
parent 616981a2b7
commit e680099cec
6 changed files with 9 additions and 7 deletions

View File

@@ -32,7 +32,8 @@ chrome.tabs.onUpdated.addListener(function(tabId) {
chrome.runtime.onMessage.addListener(function (request, sender, callback) {
switch(request.message) {
case "openConfig":
chrome.runtime.openOptionsPage();
console.log(chrome.runtime.getURL('permissions/index.html' + (request.hash ? '#' + request.hash : '')))
chrome.tabs.create({url: chrome.runtime.getURL('options/options.html' + (request.hash ? '#' + request.hash : ''))});
return;
case "openHelp":
chrome.tabs.create({url: chrome.runtime.getURL('help/index_en.html')});