mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
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':
|
||||
response = µb.changeUserSettings(request.name, request.value);
|
||||
if ( vAPI.net.canUncloakCnames !== true ) {
|
||||
if (
|
||||
vAPI.net.canUncloakCnames !== true &&
|
||||
response instanceof Object
|
||||
) {
|
||||
response.cnameUncloakEnabled = undefined;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user