Manos Chorianopoulos

add loyaltyWallet event from webview

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