Skip to content

Commit

Permalink
Merge pull request #2468 from folmert/patch-1
Browse files Browse the repository at this point in the history
fix missing supported extension check in case when asset is a string
  • Loading branch information
ndelangen authored Dec 12, 2017
2 parents e6a776b + 5645a0a commit a60a822
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/vue/src/server/iframe.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ const urlsFromAssets = assets => {
.forEach(key => {
let asset = assets[key];
if (typeof asset === 'string') {
urls[getExtensionForFilename(asset)].push(asset);
if (urls[getExtensionForFilename(asset)]) {
urls[getExtensionForFilename(asset)].push(asset);
}
} else {
if (!Array.isArray(asset)) {
asset = [asset];
Expand Down

0 comments on commit a60a822

Please sign in to comment.