Skip to content

Commit

Permalink
remove unnecessary argument
Browse files Browse the repository at this point in the history
  • Loading branch information
samio committed Mar 29, 2019
1 parent 7645586 commit e44d8f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/server/src/ChunkExtractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class ChunkExtractor {
)}>${this.getRequiredChunksScriptContent()}</script>`
}

getRequiredChunksScriptElement(asset, extraProps) {
getRequiredChunksScriptElement(extraProps) {
return (
<script
key="required"
Expand All @@ -267,7 +267,7 @@ class ChunkExtractor {
dangerouslySetInnerHTML={{
__html: this.getRequiredChunksScriptContent(),
}}
{...handleExtraProps(asset, extraProps)}
{...handleExtraProps(null, extraProps)}
/>
)
}
Expand Down Expand Up @@ -318,7 +318,6 @@ class ChunkExtractor {

getScriptElements(extraProps = {}) {
const requiredScriptElement = this.getRequiredChunksScriptElement(
null,
extraProps,
)
const mainAssets = this.getMainAssets('script')
Expand Down

0 comments on commit e44d8f1

Please sign in to comment.