mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-26 18:10:39 +12:00
Popup related changes
This commit is contained in:
parent
1807c74580
commit
d789ffa442
|
@ -73,18 +73,22 @@ vAPI.download = function(details) {
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
vAPI.getURL = function(path) {
|
vAPI.getURL = chrome.runtime.getURL;
|
||||||
return chrome.runtime.getURL(path);
|
|
||||||
};
|
|
||||||
|
|
||||||
vAPI.i18n = function(s) {
|
/******************************************************************************/
|
||||||
return chrome.i18n.getMessage(s);
|
|
||||||
};
|
vAPI.i18n = chrome.i18n.getMessage;
|
||||||
|
|
||||||
setScriptDirection(vAPI.i18n('@@ui_locale'));
|
setScriptDirection(vAPI.i18n('@@ui_locale'));
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
vAPI.closePopup = function() {
|
||||||
|
window.open('','_self').close();
|
||||||
|
};
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
Loading…
Reference in a new issue