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