Manos Chorianopoulos

fix CampaignViewController

...@@ -171,11 +171,11 @@ var timer2: DispatchSourceTimer? ...@@ -171,11 +171,11 @@ var timer2: DispatchSourceTimer?
171 let metersParam = swiftApi().getMetersWebview() 171 let metersParam = swiftApi().getMetersWebview()
172 let scriptSource = "passMeters(\(metersParam));" 172 let scriptSource = "passMeters(\(metersParam));"
173 173
174 - self?.webview.evaluateJavaScript(scriptSource, completionHandler: { (object, error) in 174 + self?.webView.evaluateJavaScript(scriptSource, completionHandler: { (object, error) in
175 -// print("==== object passMeters ====") 175 + // print("==== object passMeters ====")
176 -// print(object) 176 + // print(object)
177 -// print("==== error passMeters ====") 177 + // print("==== error passMeters ====")
178 -// print(error) 178 + // print(error)
179 179
180 swiftApi().setSavedStepsWebview(swiftApi().getSavedStepsWebview() + swiftApi().getStepsWebview()) 180 swiftApi().setSavedStepsWebview(swiftApi().getSavedStepsWebview() + swiftApi().getStepsWebview())
181 swiftApi().setStepsWebview(0) 181 swiftApi().setStepsWebview(0)
...@@ -355,9 +355,9 @@ var timer2: DispatchSourceTimer? ...@@ -355,9 +355,9 @@ var timer2: DispatchSourceTimer?
355 let scriptSource = "passParams(\(params));" 355 let scriptSource = "passParams(\(params));"
356 356
357 webView.evaluateJavaScript(scriptSource, completionHandler: { (object, error) in 357 webView.evaluateJavaScript(scriptSource, completionHandler: { (object, error) in
358 - // print("==== object ====") 358 + // print("==== object passParams ====")
359 // print(object) 359 // print(object)
360 - // print("==== error ====") 360 + // print("==== error passParams ====")
361 // print(error) 361 // print(error)
362 362
363 DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) { 363 DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) {
......