Skip to content

Commit

Permalink
Merge pull request #106 from Giphy/task/fix-om-disable
Browse files Browse the repository at this point in the history
fix om disable logic
  • Loading branch information
cgmaier authored Jan 27, 2020
2 parents d9d412d + f8b7bab commit 083b55f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/GiphyCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import Foundation
GiphyPingbacks.configure(apiKey: apiKey, verificationMode: verificationMode)
GiphyPingbacks.enableDebugLogging(GiphyCore.enableLogs)

if let omVal = Bundle.main.object(forInfoDictionaryKey: "GiphyDisableOpenMeasurement") as? Bool,
omVal == true, GiphyCore.isAppExtension {
GiphyCore.enableOM = !isAppExtension
if let omVal = Bundle.main.object(forInfoDictionaryKey: "GiphyDisableOpenMeasurement") as? Bool, omVal == true {
GiphyCore.enableOM = false
}
GiphyCore.setupOpenMeasurement()
Expand Down

0 comments on commit 083b55f

Please sign in to comment.