Skip to content

Commit

Permalink
fix: include fallback icon
Browse files Browse the repository at this point in the history
  • Loading branch information
therufa committed Dec 25, 2020
1 parent 5ecb19a commit 71f21e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Vue, { h as v3h } from 'vue'
import { mdiAlert } from '@mdi/js'
import './icons.css'

const vueVersion = Vue === undefined ? 3 : 2;
Expand All @@ -15,7 +16,7 @@ const renderWithIcons = mdi => function render(v2h, v2ctx) {
const props = isV2 ? v2ctx.props : this
const attrs = isV2 ? v2ctx.attrs : this.$attrs
const h = isV2 ? v2h : v3h
const iconPath = mdi[`mdi${ucFirst(props.name)}`] || mdi.mdiAlert
const iconPath = mdi[`mdi${ucFirst(props.name)}`] || mdiAlert

const spanAttrs = {
role: props.role,
Expand Down

0 comments on commit 71f21e8

Please sign in to comment.