mirror of https://github.com/gorhill/uBlock.git
Fix regression causing exceptions to be thrown
Related commit:
- 1c3b45f75d
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1513
This commit is contained in:
parent
c80afb805e
commit
404e6252d6
|
@ -190,7 +190,10 @@ const onMessage = function(request, sender, callback) {
|
||||||
|
|
||||||
case 'userSettings':
|
case 'userSettings':
|
||||||
response = µb.changeUserSettings(request.name, request.value);
|
response = µb.changeUserSettings(request.name, request.value);
|
||||||
if ( vAPI.net.canUncloakCnames !== true ) {
|
if (
|
||||||
|
vAPI.net.canUncloakCnames !== true &&
|
||||||
|
response instanceof Object
|
||||||
|
) {
|
||||||
response.cnameUncloakEnabled = undefined;
|
response.cnameUncloakEnabled = undefined;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue