mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-05-19 03:33:17 +12:00
fix scope selector for "base-domainless" hostnames
This commit is contained in:
parent
9432e3b6eb
commit
efa0085a67
|
@ -49,7 +49,7 @@ let fireChangeEvent = function() {
|
|||
};
|
||||
|
||||
let init = function(domain, hostname, scope, container) {
|
||||
if ( typeof domain !== 'string' || domain === '' ) { return; }
|
||||
if ( typeof domain !== 'string' ) { return; }
|
||||
|
||||
currentScope = '';
|
||||
|
||||
|
@ -111,7 +111,7 @@ let init = function(domain, hostname, scope, container) {
|
|||
listening = true;
|
||||
}
|
||||
|
||||
update(scope, container);
|
||||
update(scope || hostname, container);
|
||||
};
|
||||
|
||||
let getScope = function() {
|
||||
|
|
Loading…
Reference in a new issue