mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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…
Reference in New Issue
Block a user