Skip to content

Commit ce27875

Browse files
committed
fix(icon): Make createIconNode last param optional.
1 parent f34e675 commit ce27875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ interface CreateOptions {
145145
* @param iconName Name of the icon or emoji to add.
146146
* @param color Optional color of the icon to add.
147147
*/
148-
const createIconNode = (plugin: InvioPlugin, path: string, svgStr: string, color: string = '#44cf6e', repeated: boolean): void => {
148+
const createIconNode = (plugin: InvioPlugin, path: string, svgStr: string, color: string = '#44cf6e', repeated?: boolean): void => {
149149
// Get the container from the provided options or try to find the node that has the
150150
// path from the document itself.
151151
const node = document.querySelector(`[data-path="${path}"]`);

0 commit comments

Comments
 (0)