Manos Chorianopoulos

add loyaltyWallet event from webview

......@@ -668,6 +668,12 @@ var timer2: DispatchSourceTimer?
if (access_token != "" && refresh_token != "") {
swiftApi().updateRefreshToken(access_token: access_token, refresh_token: refresh_token)
}
} else if (eventArray[1] == "loyaltyWallet") {
// event:loyaltyWallet
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController
self.navigationController?.pushViewController(vc, animated: true)
}
}
......