mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-10 15:02:56 +00:00
11 lines
251 B
JavaScript
11 lines
251 B
JavaScript
export function new_event() {
|
|
return new Promise(resolve => {
|
|
window.addEventListener("test-event", resolve);
|
|
window.dispatchEvent(new Event("test-event", {
|
|
bubbles: true,
|
|
cancelable: true,
|
|
composed: true,
|
|
}));
|
|
});
|
|
}
|