mirror of
https://github.com/paricafe/misskey.git
synced 2025-01-06 18:20:49 -06:00
68bcd91d57
* chore: Use clipboard API directly * fix: Fix lint
11 lines
284 B
TypeScript
11 lines
284 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
/**
|
|
* Clipboardに値をコピー(TODO: 文字列以外も対応)
|
|
*/
|
|
export function copyToClipboard(input: string | null) {
|
|
if (input) navigator.clipboard.writeText(input);
|
|
};
|