1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 08:15:03 +12:00

code review

This commit is contained in:
gorhill 2015-05-07 19:36:47 -04:00
parent 1e1ec2e92c
commit 3849a3d4d9

View file

@ -1934,10 +1934,9 @@ vAPI.cookies.observe = function(subject, topic, reason) {
if ( reason === 'deleted' || subject instanceof Ci.nsICookie2 === false ) {
return;
}
if ( typeof this.onChanged !== 'function' ) {
return;
if ( typeof this.onChanged === 'function' ) {
this.onChanged(new this.CookieEntry(subject));
}
this.onChanged(new this.CookieEntry(subject));
};
/******************************************************************************/