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 af955cb8d..eb8c56644 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 @@ public final class Navigator implements JSObject { @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); }