Skip to content

Commit

Permalink
partial revert 9f6f05b
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed Dec 9, 2017
1 parent 9985d78 commit 181e6d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
14 changes: 12 additions & 2 deletions platform/chromium/options_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,18 @@

'use strict';

// Patch 2017-12-06: Do not open a new tab for the dashboard
vAPI.openHere('dashboard.html');
vAPI.messaging.send(
'default',
{
what: 'gotoURL',
details: {
url: 'dashboard.html',
select: true,
index: -1
}
}
);
window.close();

/******************************************************************************/

Expand Down
9 changes: 0 additions & 9 deletions platform/chromium/vapi-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,15 +433,6 @@ vAPI.messaging.Connection.prototype = {

/******************************************************************************/

// Patch 2017-12-06: Replace the current tab
vAPI.openHere = function(path) {
if ( chrome.tabs !== undefined ) {
chrome.tabs.update({ url: path });
}
};

/******************************************************************************/

vAPI.shutdown.add(function() {
vAPI.messaging.shutdown();
window.vAPI = undefined;
Expand Down

0 comments on commit 181e6d0

Please sign in to comment.