mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-14 08:15:03 +12:00
URL handling changes
This commit is contained in:
parent
a6acb50892
commit
a7f15f0b71
|
@ -174,6 +174,19 @@ vAPI.canExecuteContentScript = function() {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
vAPI.getUrlNormalizer = function() {
|
||||
return {
|
||||
get href() {
|
||||
return this._url || '';
|
||||
},
|
||||
set href(url) {
|
||||
this._url = _urlNormalizer_(url, document.baseURI);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
})(this);
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue