swaf/src/assets/ts/featherIcons.ts

11 lines
225 B
TypeScript
Raw Normal View History

import feather from "feather-icons";
let alreadyReplaced = false;
export function replaceIcons(once: boolean = true) {
if (!once || !alreadyReplaced) {
alreadyReplaced = true;
feather.replace();
}
}