Created
August 4, 2014 15:16
-
-
Save jamespeerless/4dc7cdecf984d5195753 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_pageJSContext[@"sendRequest"] = ^(NSString *eventName, NSString *payload) { | |
__strong DNTBrowserViewController *strongSelf = weakSelf; | |
DDLogDebug(@"CS -> KEY-OVERLAY: %@", eventName); | |
// pass message from webview to keyboard overlay context | |
if (strongSelf.keyboardOverlayWebViewController.overlayJSContext) | |
{ | |
JSValue *jsOnRequest = strongSelf.keyboardOverlayWebViewController.overlayJSContext[@"onRequest"]; | |
[jsOnRequest callWithArguments:@[eventName, payload]]; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment