JSO: add API to send beacon (#956)

This commit is contained in:
Ivan Hetman 2024-10-03 20:36:15 +03:00 committed by GitHub
parent 68a1b2efae
commit 2414d74002
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,4 +47,10 @@ public final class Navigator implements JSObject {
@JSBody(script = "return navigator.hardwareConcurrency") @JSBody(script = "return navigator.hardwareConcurrency")
public static native int hardwareConcurrency(); public static native int hardwareConcurrency();
public static native boolean sendBeacon(String url);
public static native boolean sendBeacon(String url, String data);
public static native boolean sendBeacon(String url, JSObject data);
} }