mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 16:06:36 +08:00
12 lines
202 B
TypeScript
12 lines
202 B
TypeScript
export const tryCopyInstallCommand = async (
|
|
command: string,
|
|
): Promise<boolean> => {
|
|
try {
|
|
await navigator.clipboard.writeText(command);
|
|
|
|
return true;
|
|
} catch {
|
|
return false;
|
|
}
|
|
};
|