Skip to content

Commit

Permalink
fix(js_helper): .js file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Oct 18, 2019
1 parent 5018dd7 commit 16cdafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/helper/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function jsHelper(...args) {
} else {
// New syntax
item.src = url_for.call(this, item.src);
if (!item.src.endsWith('.css')) item.src += '.css';
if (!item.src.endsWith('.js')) item.src += '.js';
result += htmlTag('script', { ...item }, '') + '\n';
}
});
Expand Down

0 comments on commit 16cdafd

Please sign in to comment.