mirror of https://github.com/gorhill/uBlock.git
not needed
This commit is contained in:
parent
089af13e32
commit
ca77c677d7
|
@ -156,12 +156,6 @@ vAPI.canExecuteContentScript = function() {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
vAPI.getUrlNormalizer = function() {
|
||||
return document.createElement('a');
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
|
@ -174,19 +174,6 @@ vAPI.canExecuteContentScript = function() {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
vAPI.getUrlNormalizer = function() {
|
||||
return {
|
||||
get href() {
|
||||
return this._url || '';
|
||||
},
|
||||
set href(url) {
|
||||
this._url = _urlNormalizer_(url, document.baseURI);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
})(this);
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
|
@ -182,12 +182,6 @@ vAPI.canExecuteContentScript = function() {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
vAPI.getUrlNormalizer = function() {
|
||||
return document.createElement('a');
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
// This file can be included into extensin pages,
|
||||
// but the following code should run only in content pages.
|
||||
|
||||
|
|
|
@ -896,7 +896,7 @@ var startPicker = function(details) {
|
|||
divDialog.addEventListener('click', onDialogClicked);
|
||||
taCandidate = divDialog.querySelector('textarea');
|
||||
taCandidate.addEventListener('input', onCandidateChanged);
|
||||
urlNormalizer = vAPI.getUrlNormalizer();
|
||||
urlNormalizer = document.createElement('a');
|
||||
window.addEventListener('scroll', onScrolled, true);
|
||||
window.addEventListener('keydown', onKeyPressed, true);
|
||||
|
||||
|
|
Loading…
Reference in New Issue