Skip to content

Commit

Permalink
fixed unused-variable error
Browse files Browse the repository at this point in the history
  • Loading branch information
brittanyzellman committed May 31, 2018
1 parent 1c19dd6 commit 2ebff0c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions modules/tripleliftBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,11 @@ function _buildResponseObject(bidderRequest, bid) {
function _isFlashEnabled() {
var hasFlash = 0;
try {
var fo = new window.ActiveXObject('ShockwaveFlash.ShockwaveFlash');
hasFlash = 1;
hasFlash = new ActiveXObject('ShockwaveFlash.ShockwaveFlash') ? 1 : 0
} catch (e) {
if (navigator.mimeTypes &&
hasFlash = navigator.mimeTypes &&
navigator.mimeTypes['application/x-shockwave-flash'] !== undefined &&
navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin) {
hasFlash = 1;
}
navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin ? 1 : 0
}
return hasFlash;
}
Expand Down

0 comments on commit 2ebff0c

Please sign in to comment.