mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-02 04:37:35 +03:00
* feat: smaller imports and exports * test(prefs): extend tests * style(clippy) * style: bubble up error * style: update some wording
9 lines
No EOL
264 B
JavaScript
9 lines
No EOL
264 B
JavaScript
async function copy() {
|
|
await navigator.clipboard.writeText(document.getElementById('bincode_str').value);
|
|
}
|
|
|
|
async function set_listener() {
|
|
document.getElementById('copy').addEventListener('click', copy);
|
|
}
|
|
|
|
window.addEventListener('load', set_listener); |