1
0
Fork 0
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:
Deathamns 2015-01-15 13:24:35 +01:00 committed by gorhill
parent a6acb50892
commit a7f15f0b71

View file

@ -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);
/******************************************************************************/