Skip to content

Commit

Permalink
🚸 Automatically detect book type
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Oct 19, 2023
1 parent c461a20 commit bddcc09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/IscnRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ export default class IscnRegisterForm extends Vue {
get defaultType() {
if (this.isPhoto) return 'Photo'
if (this.isImage) return 'Image'
if (this.fileType === 'application/pdf' || this.fileType === 'application/epub+zip') return 'Book'
return 'CreativeWork'
}
Expand Down

0 comments on commit bddcc09

Please sign in to comment.