1
0
mirror of https://github.com/RobinLinus/snapdrop.git synced 2025-05-15 23:20:11 -07:00

Implement off method for Events class

This commit is contained in:
Haocen 2022-09-13 08:33:03 -04:00 committed by GitHub
parent 529be8c55e
commit 29bd778757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -512,6 +512,10 @@ class Events {
static on(type, callback) { static on(type, callback) {
return window.addEventListener(type, callback, false); return window.addEventListener(type, callback, false);
} }
static off(type, callback) {
return window.removeEventListener(type, callback, false);
}
} }