Skip to content

Commit

Permalink
Download page: don't add semicolon unless needed in generated code. Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Sep 5, 2015
1 parent e49f7cf commit 5a5eec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ function buildCode(promises) {
if(i < l) {
var p = promises[i];
p.contentsPromise.then(function(contents) {
code[p.type] += contents + (p.type === 'js'? ';' : '') + '\n';
code[p.type] += contents + (p.type === 'js' && !/;\s*$/.test(contents) ? ';' : '') + '\n';
i++;
f(resolve);
});
Expand Down

0 comments on commit 5a5eec5

Please sign in to comment.