Browse Source

feat: remove scriptMessageHandlerForName method

sunzhongliang 4 years ago
parent
commit
06260b0e5e
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      ios/RNCWebView.m

+ 0
- 1
ios/RNCWebView.m View File

@@ -288,7 +288,6 @@ static NSDictionary* customCertificatesForHost;
288 288
 - (void)removeFromSuperview
289 289
 {
290 290
     if (_webView) {
291
-        [_webView.configuration.userContentController removeScriptMessageHandlerForName:MessageHandlerName];
292 291
         [_webView removeObserver:self forKeyPath:@"estimatedProgress"];
293 292
         [_webView removeFromSuperview];
294 293
 #if !TARGET_OS_OSX