Skip to content

Commit

Permalink
Improve highlightable detection
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Nov 19, 2018
1 parent a064d8b commit ad4e479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const icons = {
bullhorn: 'fas fa-bullhorn',
folder: 'far fa-folder',
folderOpen: 'far fa-folder-open',
file: 'far fa-file',
file: 'fas fa-file',
fileTxt: 'far fa-file-alt',
fileImage: 'far fa-file-image',
fileVideo: 'far fa-file-video',
Expand Down Expand Up @@ -118,7 +118,7 @@ icons.avi = icons.fileVideo;
icons.wmv = icons.fileVideo;
icons.m4p = icons.fileVideo;
icons.m4v = icons.fileVideo;
icons.yml = icons.configFile;
icons.yml = icons.fileTxt;
icons.yaml = icons.yml;
icons.hbs = icons.html;
icons.nunj = icons.html;
Expand Down
1 change: 1 addition & 0 deletions src/views/PackageDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ export default class PackageDetail extends Vue {
private isHighlightableType(item: TreeItem): boolean {
return (
this.getLanguage(item.name) !== 'plaintext' ||
item.type === null ||
(item.type !== undefined &&
(item.type.endsWith('json') ||
Expand Down

0 comments on commit ad4e479

Please sign in to comment.