mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 08:52:45 +01:00
#685: code review
This commit is contained in:
parent
bc7434cf5c
commit
65cb46c845
@ -1,3 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
<head>
|
||||||
<script src="js/vapi-client.js"></script>
|
<script src="js/vapi-client.js"></script>
|
||||||
<script src="js/vapi-common.js"></script>
|
<script src="js/options_ui.js"></script>
|
||||||
|
<title></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -23,28 +23,6 @@
|
|||||||
|
|
||||||
/* global self */
|
/* global self */
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
|
|
||||||
'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();
|
|
||||||
}
|
|
||||||
|
|
||||||
})();
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user