You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
626 B
26 lines
626 B
// |
|
// TFScriptMessageHandler.m |
|
// WXReader |
|
// |
|
// Created by 谢腾飞 on 2020/12/3. |
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved. |
|
// |
|
|
|
#import "TFScriptMessageHandler.h" |
|
|
|
@implementation TFScriptMessageHandler |
|
|
|
- (instancetype)initWithDelegate:(id<WKScriptMessageHandler>)delegate |
|
{ |
|
if (self = [super init]) { |
|
_delegate = delegate; |
|
} |
|
return self; |
|
} |
|
|
|
- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message |
|
{ |
|
[self.delegate userContentController:userContentController didReceiveScriptMessage:message]; |
|
} |
|
|
|
@end
|
|
|