mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +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
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue