Skip to content

Commit

Permalink
🐛 Fusion bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Apr 13, 2017
1 parent ebad007 commit a5b77ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/Private/Fusion/Assets/File.fusion
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prototype(Carbon.IncludeAssets:File) < prototype(Neos.Fusion:Case) {
file = ${file}
extension = ''
assetResourceFolder = ${assetResourceFolder ? assetResourceFolder : false}
assetResourceFolder = ${assetResourceFolder ? assetResourceFolder : String.indexOf(this.file, '//') != -1 ? true : false}

@ignoreProperties = ${['file','extension','assetResourceFolder']}
@if.hasAttributes = ${this.assetResourceFolder ? true : false}
Expand Down Expand Up @@ -60,8 +60,8 @@ prototype(Carbon.IncludeAssets:File) < prototype(Neos.Fusion:Case) {
condition = ${entry}
renderer = ${' ' + String.trim(entry)}
}
@process.addTag = ${value ? extension == '.css' ? Configuration.setting('Carbon.IncludeAssets.LoadCSSAsynchron') ? '<link rel="preload"' + value + ' as="style" onload="this.rel=\'stylesheet\'" /><noscript><link rel="stylesheet"' + value + ' /></noscript>' : '<link rel="stylesheet"' + value + ' />' : '<script' + value + '></script>' : ''}
}
@process.addTag = ${value ? extension == '.css' ? Configuration.setting('Carbon.IncludeAssets.LoadCSSAsynchron') ? '<link rel="preload"' + value + ' as="style" onload="this.rel=\'stylesheet\'" /><noscript><link rel="stylesheet"' + value + ' /></noscript>' : '<link rel="stylesheet"' + value + ' />' : '<script' + value + '></script>' : ''}
}
}
}

0 comments on commit a5b77ab

Please sign in to comment.