Skip to content

Commit

Permalink
include browser name in downloas filenames #1594
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Apr 28, 2017
1 parent 48f6479 commit 39f2da7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/html/templates/url/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends ./layout.pug
block content
- var d = pageInfo.data
- var daTitle = daurlAlias ? daurlAlias : daurl
- var downloadName = (daTitle + '-' + timestamp).replace(/(https?\:\/\/)|( )|(:)/ig, '')
- var downloadName = (daTitle + '-' + options.browser + '-' + timestamp).replace(/(https?\:\/\/)|( )|(:)/ig, '')
h1 Page summary

h5.url
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/html/templates/url/run.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ block content
- var d = pageInfo.data
- runNumber = Number(runIndex)+1
- var daTitle = daurlAlias ? daurlAlias : daurl
- var downloadName = (daTitle + '-' + runNumber + '-' + timestamp).replace(/(https?\:\/\/)|( )|(:)/ig, '')
- var downloadName = (daTitle + '-' + runNumber + '-' + options.browser + '-' + timestamp).replace(/(https?\:\/\/)|( )|(:)/ig, '')

h1 Run #{runNumber} summary
h5.url
Expand Down

0 comments on commit 39f2da7

Please sign in to comment.