File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ Object.assign(BidInterceptor.prototype, {
126
126
Object . entries ( ref ) . forEach ( ( [ key , val ] ) => {
127
127
if ( typeof val === 'function' ) {
128
128
result [ key ] = val ( ...args ) ;
129
- } else if ( typeof val === 'object' ) {
129
+ } else if ( val != null && typeof val === 'object' ) {
130
130
result [ key ] = replFn ( { args, ref : val } )
131
131
} else {
132
132
result [ key ] = val ;
@@ -138,7 +138,7 @@ Object.assign(BidInterceptor.prototype, {
138
138
return ( bid , ...args ) => {
139
139
const response = this . responseDefaults ( bid ) ;
140
140
mergeDeep ( response , replFn ( { args : [ bid , ...args ] } ) ) ;
141
- if ( ! response . ad ) {
141
+ if ( ! response . hasOwnProperty ( 'ad' ) && ! response . hasOwnProperty ( 'adUrl' ) ) {
142
142
response . ad = this . defaultAd ( bid , response ) ;
143
143
}
144
144
response . isDebug = true ;
You can’t perform that action at this time.
0 commit comments