Skip to content

Commit

Permalink
Revert "gorhill#12"
Browse files Browse the repository at this point in the history
This reverts commit 547a6c0.
  • Loading branch information
jspenguin2017 committed Dec 9, 2017
1 parent 547a6c0 commit 9985d78
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 32 deletions.
2 changes: 0 additions & 2 deletions platform/chromium/options_ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<meta charset="utf-8">
<script src="js/vapi.js"></script>
<script src="js/vapi-client.js"></script>
<!-- Patch 2017-12-09: Properly fix dashboard opening handling -->
<script src="js/vapi-nano.js"></script>
<script src="js/options_ui.js"></script>
<title></title>
</head>
Expand Down
9 changes: 9 additions & 0 deletions platform/chromium/vapi-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,15 @@ 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
21 changes: 0 additions & 21 deletions platform/chromium/vapi-nano.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

<script src="js/vapi.js"></script>
<script src="js/vapi-common.js"></script>
<!-- Patch 2017-12-09: Properly fix dashboard opening handling -->
<script src="js/vapi-nano.js"></script>
<script src="js/udom.js"></script>
<script src="js/i18n.js"></script>
<script src="js/dashboard.js"></script>
Expand Down
7 changes: 0 additions & 7 deletions src/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,4 @@ uDom.onLoad(function() {

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

// Patch 2017-12-09: Make back button properly return to extension manager
window.addEventListener('beforeunload', function() {
vAPI.openHere(vAPI.extensionManager);
});

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

})();

0 comments on commit 9985d78

Please sign in to comment.