File tree Expand file tree Collapse file tree
APCAppCore/APCAppCore/UI/Onboarding Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939@property (weak , nonatomic ) IBOutlet UIToolbar *webToolBar;
4040
4141@property (nonatomic , strong ) NSString *link;
42+ @property (nonatomic , strong ) NSString *javascriptCallOnLoad;
4243
4344- (IBAction )close : (id )sender ;
4445
Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ - (void)webViewDidStartLoad:(UIWebView *)__unused webView
7979
8080- (void )webViewDidFinishLoad : (UIWebView *)__unused webView
8181{
82+ if (self.javascriptCallOnLoad != nil ) {
83+ // Some windows might to make a javascript call when loaded. For example, to
84+ // validate with the sessionToken in order to load the webpage.
85+ [self .webView stringByEvaluatingJavaScriptFromString: self .javascriptCallOnLoad];
86+ }
8287 [self updateToolbarButtons ];
8388}
8489
You can’t perform that action at this time.
0 commit comments