Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2024-02-26 18:46:42 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
be0305f039d7632f770d072cce9a19111c2170e6
be0305f0
1 parent
02134916
fix CampaignViewController
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
be0305f
...
...
@@ -171,11 +171,11 @@ var timer2: DispatchSourceTimer?
let
metersParam
=
swiftApi
()
.
getMetersWebview
()
let
scriptSource
=
"passMeters(
\(
metersParam
)
);"
self
?
.
web
v
iew
.
evaluateJavaScript
(
scriptSource
,
completionHandler
:
{
(
object
,
error
)
in
//
print("==== object passMeters ====")
//
print(object)
//
print("==== error passMeters ====")
//
print(error)
self
?
.
web
V
iew
.
evaluateJavaScript
(
scriptSource
,
completionHandler
:
{
(
object
,
error
)
in
//
print("==== object passMeters ====")
//
print(object)
//
print("==== error passMeters ====")
//
print(error)
swiftApi
()
.
setSavedStepsWebview
(
swiftApi
()
.
getSavedStepsWebview
()
+
swiftApi
()
.
getStepsWebview
())
swiftApi
()
.
setStepsWebview
(
0
)
...
...
@@ -355,9 +355,9 @@ var timer2: DispatchSourceTimer?
let
scriptSource
=
"passParams(
\(
params
)
);"
webView
.
evaluateJavaScript
(
scriptSource
,
completionHandler
:
{
(
object
,
error
)
in
// print("==== object ====")
// print("==== object
passParams
====")
// print(object)
// print("==== error ====")
// print("==== error
passParams
====")
// print(error)
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
3.0
)
{
...
...
Please
register
or
login
to post a comment