mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-17 23:14:19 +01:00
9 lines
219 B
TypeScript
9 lines
219 B
TypeScript
import Clipboard from 'clipboard';
|
|
import { getElements } from './util';
|
|
|
|
export function initClipboard() {
|
|
for (const element of getElements('a.copy-token', 'button.copy-secret')) {
|
|
new Clipboard(element);
|
|
}
|
|
}
|