Browse Source

Chrome: bypass options_ui

pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
32ad9420de
  1. 23
      platform/chromium/vapi-common.js

23
platform/chromium/vapi-common.js

@ -29,6 +29,29 @@
'use strict'; 'use strict';
var fileName = 'options_ui.html';
if ( location.pathname.slice(-fileName.length) === fileName ) {
var messager = vAPI.messaging.channel('_open');
messager.send({
what: 'gotoURL',
details: {
url: 'dashboard.html',
index: -1
}
});
window.close();
}
})();
/******************************************************************************/
/******************************************************************************/
(function() {
'use strict';
self.vAPI = self.vAPI || {}; self.vAPI = self.vAPI || {};
var chrome = self.chrome; var chrome = self.chrome;

Loading…
Cancel
Save