v1.0.22
This commit is contained in:
1 parent
aefa5e7925
commit
b55e1e5aad
107 files changed
+2193
-443
No files matched your search
@@ -23,6 +23,7 @@ export async function copyToClipboard(text: string): Promise<boolean> {
|
||||
document.body.appendChild(textarea);
|
||||
textarea.focus();
|
||||
textarea.select();
|
||||
textarea.setSelectionRange(0, textarea.value.length);
|
||||
const ok = document.execCommand('copy');
|
||||
document.body.removeChild(textarea);
|
||||
if (ok) return true;
|
||||
|
||||
@@ -43,4 +43,8 @@ export function getIconComponent(iconName: string): ComponentType {
|
||||
return iconMap[iconName] || Globe;
|
||||
}
|
||||
|
||||
export function isCustomIcon(icon: string | null | undefined): boolean {
|
||||
return !!icon && icon.startsWith('custom:');
|
||||
}
|
||||
|
||||
export { iconMap };
|
||||
Reference in new issue
Block a user