Merge pull request #65 from schlagmichdoch/pairdrop_cli_add_firefox_fallback

pairdrop-cli: add fallback if navigator.clipboard.readText() is not available
This commit is contained in:
schlagmichdoch
2023-03-06 12:25:54 +01:00
committed by GitHub
8 changed files with 166 additions and 84 deletions

View File

@@ -974,11 +974,11 @@ class Events {
window.dispatchEvent(new CustomEvent(type, { detail: detail }));
}
static on(type, callback) {
return window.addEventListener(type, callback, false);
static on(type, callback, options = false) {
return window.addEventListener(type, callback, options);
}
static off(type, callback) {
return window.removeEventListener(type, callback, false);
static off(type, callback, options = false) {
return window.removeEventListener(type, callback, options);
}
}