@@ -439,9 +439,13 @@ - (void)configureTheOptionsJsonStringWithAAOptions:(AAOptions *)aaOptions {
439439#pragma mark - WKUIDelegate
440440- (void )webView : (WKWebView *)webView runJavaScriptAlertPanelWithMessage : (NSString *)message initiatedByFrame : (WKFrameInfo *)frame completionHandler : (void (^)(void ))completionHandler {
441441#if TARGET_OS_IOS
442- UIAlertController *alertController = [UIAlertController alertControllerWithTitle: @" JS WARNING" message: message preferredStyle: UIAlertControllerStyleAlert];
442+ UIAlertController *alertController = [UIAlertController alertControllerWithTitle: @" JS WARNING"
443+ message: message
444+ preferredStyle: UIAlertControllerStyleAlert];
443445
444- UIAlertAction *okayAction = [UIAlertAction actionWithTitle: @" Okay" style: UIAlertActionStyleDefault handler: ^(UIAlertAction *action) {
446+ UIAlertAction *okayAction = [UIAlertAction actionWithTitle: @" Okay"
447+ style: UIAlertActionStyleDefault
448+ handler: ^(UIAlertAction *action) {
445449 completionHandler ();
446450 }];
447451 [alertController addAction: okayAction];
@@ -453,7 +457,9 @@ - (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSStrin
453457 return ;
454458 }
455459
456- [presentingViewController presentViewController: alertController animated: YES completion: nil ];
460+ [presentingViewController presentViewController: alertController
461+ animated: YES
462+ completion: nil ];
457463
458464#elif TARGET_OS_MAC
459465 NSAlert *alert = [[NSAlert alloc ] init ];
@@ -462,7 +468,8 @@ - (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSStrin
462468 alert.informativeText = message;
463469 [alert addButtonWithTitle: @" Okay" ];
464470
465- [alert beginSheetModalForWindow: [NSApplication sharedApplication ].mainWindow completionHandler: ^(NSModalResponse response) {
471+ [alert beginSheetModalForWindow: [NSApplication sharedApplication ].mainWindow
472+ completionHandler: ^(NSModalResponse response) {
466473 if (response == NSModalResponseOK ) {
467474 completionHandler ();
468475 }
0 commit comments