Browse Source

clean up code style for common.js

iou90 6 years ago
parent
commit
8d3ce7adbc
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      autoHeightWebView/common.js

+ 2
- 2
autoHeightWebView/common.js View File

@@ -46,11 +46,11 @@ function appendStylesToHead(styles, script) {
46 46
 }
47 47
 
48 48
 function getScript(props, getBaseScript, getIframeBaseScript) {
49
-  const { hasIframe, files, customStyle, resizeWidth } = props;
49
+  const { hasIframe, files, customStyle } = props;
50 50
   const baseScript = getBaseScript(props.style);
51 51
   let script = hasIframe ? baseScript : getIframeBaseScript(props.style);
52 52
   script = files ? appendFilesToHead(files, baseScript) : baseScript;
53
-  script = appendStylesToHead(customStyle, script, resizeWidth);
53
+  script = appendStylesToHead(customStyle, script);
54 54
   return script;
55 55
 }
56 56