diff --git a/jso/apis/src/main/java/org/teavm/jso/browser/Navigator.java b/jso/apis/src/main/java/org/teavm/jso/browser/Navigator.java index af955cb8db..eb8c56644c 100644 --- a/jso/apis/src/main/java/org/teavm/jso/browser/Navigator.java +++ b/jso/apis/src/main/java/org/teavm/jso/browser/Navigator.java @@ -47,4 +47,10 @@ private Navigator() { @JSBody(script = "return navigator.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); }