Skip to content

Commit bb6971a

Browse files
committed
remove useless swift version check
1 parent 3945d8a commit bb6971a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

TeadsDemoApp/WebViewHelper/WebViewHelper.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,7 @@ public class WebViewHelper: NSObject, WKScriptMessageHandler {
112112
//add a timeout in case we are not able to find the slot
113113
self.noSlotTimer = Timer(timeInterval: 4, target: self, selector: #selector(self.noSlotTimeout), userInfo: nil, repeats: false)
114114

115-
#if swift(>=4.2)
116-
RunLoop.main.add(self.noSlotTimer!, forMode: RunLoop.Mode.common)
117-
#else
118-
RunLoop.main.add(self.noSlotTimer!, forMode: RunLoopMode.commonModes)
119-
#endif
115+
RunLoop.main.add(self.noSlotTimer!, forMode: .common)
120116

121117
let openSlotWithSelectorMethod = String(format: WebViewHelper.insertSlotJSMethod, self.selector)
122118
webView.evaluateJavaScript(openSlotWithSelectorMethod) { (_, error) in

0 commit comments

Comments
 (0)