Browse Source

Merge pull request #344 from CatalystCode/bugfix/preview-filename-with-querystring

Bugfix/Fix filename determination with URL querystring
pull/347/head
Hiroki Nakayama 5 years ago
committed by GitHub
parent
commit
cf7d8272cc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      app/server/static/components/preview.vue

2
app/server/static/components/preview.vue

@ -24,7 +24,7 @@ export default {
computed: {
fileExtension() {
const filename = this.url.split('/').pop();
const filename = new URL(this.url).pathname.split('/').pop();
const extension = filename.match(/[^#?]+/)[0].split('.').pop();
return extension.toLowerCase();
},

Loading…
Cancel
Save