mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-04-18 12:40:27 +08:00
JSO: add API to send beacon (#956)
This commit is contained in:
parent
68a1b2efae
commit
2414d74002
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user