You've already forked obsidian-visualiser
Migration to Nuxt v4 file structure and dependencies update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { iconExists, loadIcon } from 'iconify-icon';
|
||||
import { iconLoaded, loadIcon } from 'iconify-icon';
|
||||
|
||||
export type Node = HTMLElement | SVGElement | Text | undefined;
|
||||
export type NodeChildren = Array<Node> | undefined;
|
||||
@@ -128,7 +128,7 @@ export function icon(name: string, properties?: IconProperties): HTMLElement
|
||||
{
|
||||
element = document.createElement('iconify-icon');
|
||||
|
||||
if(!iconExists(name))
|
||||
if(!iconLoaded(name))
|
||||
loadIcon(name);
|
||||
|
||||
element.setAttribute('icon', name);
|
||||
|
||||
Reference in New Issue
Block a user