Skip to content

Commit

Permalink
fix for #42
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjacob committed Oct 9, 2015
1 parent 9f2e952 commit 8845fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prebid.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ pbjs.getBidResponsesForAdUnitCode = function(adUnitCode) {
* @alias module:pbjs.setTargetingForAdUnitsGPTAsync
*/
pbjs.setTargetingForAdUnitsGPTAsync = function(codeArr) {
if (!window.googletag || !window.googletag.pubads() || !window.googletag.pubads().getSlots()) {
if (!window.googletag || !utils.isFn(window.googletag.pubads) || !utils.isFn(window.googletag.pubads().getSlots)) {
utils.logError('window.googletag is not defined on the page');
return;
}
Expand Down

0 comments on commit 8845fba

Please sign in to comment.