You've already forked AstralRinth
forked from didirus/AstralRinth
lint
This commit is contained in:
@@ -81,8 +81,8 @@ export default {
|
|||||||
pickLink() {
|
pickLink() {
|
||||||
this.activeIndex = this.query
|
this.activeIndex = this.query
|
||||||
? this.filteredLinks.findIndex(
|
? this.filteredLinks.findIndex(
|
||||||
(x) => (x.href === '' ? undefined : x.href) === this.$route.path[this.query]
|
(x) => (x.href === '' ? undefined : x.href) === this.$route.path[this.query]
|
||||||
)
|
)
|
||||||
: this.filteredLinks.findIndex((x) => x.href === decodeURIComponent(this.$route.path))
|
: this.filteredLinks.findIndex((x) => x.href === decodeURIComponent(this.$route.path))
|
||||||
|
|
||||||
if (this.activeIndex !== -1) {
|
if (this.activeIndex !== -1) {
|
||||||
|
|||||||
@@ -54,7 +54,9 @@ export const renderHighlightedString = (string) =>
|
|||||||
if (lang && hljs.getLanguage(lang)) {
|
if (lang && hljs.getLanguage(lang)) {
|
||||||
try {
|
try {
|
||||||
return hljs.highlight(str, { language: lang }).value
|
return hljs.highlight(str, { language: lang }).value
|
||||||
} catch (__) { /* empty */ }
|
} catch (__) {
|
||||||
|
/* empty */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user