mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
9 lines
225 B
TypeScript
9 lines
225 B
TypeScript
import Clipboard from 'clipboard';
|
|
import { getElements } from './util';
|
|
|
|
export function initClipboard(): void {
|
|
for (const element of getElements('a.copy-token', 'button.copy-secret')) {
|
|
new Clipboard(element);
|
|
}
|
|
}
|