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
 - (void)removeFromSuperview
288
 - (void)removeFromSuperview
289
 {
289
 {
290
     if (_webView) {
290
     if (_webView) {
291
-        [_webView.configuration.userContentController removeScriptMessageHandlerForName:MessageHandlerName];
292
         [_webView removeObserver:self forKeyPath:@"estimatedProgress"];
291
         [_webView removeObserver:self forKeyPath:@"estimatedProgress"];
293
         [_webView removeFromSuperview];
292
         [_webView removeFromSuperview];
294
 #if !TARGET_OS_OSX
293
 #if !TARGET_OS_OSX