zhangchao 4 년 전
부모
커밋
55d4fca3d2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      autoHeightWebView/index.js

+ 1
- 1
autoHeightWebView/index.js 파일 보기

@@ -73,7 +73,7 @@ const AutoHeightWebView = React.memo(
73 73
           style={{ transform: [{ translateX: 1 }], backgroundColor: '#0000' }}
74 74
           ref={webView}
75 75
           onMessage={handleMessage}
76
-          injectedJavaScript={script}
76
+          injectedJavaScript={script + props.injectedJavaScript}
77 77
           source={currentSource}
78 78
           scrollEnabled={currentScrollEnabled}
79 79
         />