Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 9fac41f

Browse files
committed
go to whatever current dashboard tab
1 parent 107bc84 commit 9fac41f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

js/commands.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@
2525

2626
/******************************************************************************/
2727

28-
var gotoDashboard = function(which) {
29-
chrome.runtime.sendMessage({
30-
what: 'gotoExtensionURL',
31-
url: 'dashboard.html#' + which
32-
});
33-
};
34-
35-
/******************************************************************************/
36-
3728
var whitelistPageDomain = function(tabs) {
3829
if ( tabs.length === 0 ) {
3930
return;
@@ -78,7 +69,10 @@ var onCommand = function(command) {
7869
chrome.tabs.query({ active: true }, whitelistAll);
7970
break;
8071
case 'open-settings':
81-
gotoDashboard('settings');
72+
chrome.runtime.sendMessage({
73+
what: 'gotoExtensionURL',
74+
url: 'dashboard.html'
75+
});
8276
break;
8377
default:
8478
break;

0 commit comments

Comments
 (0)