mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-11 18:57:30 +03:00
Доработка
This commit is contained in:
parent
82b369c1c7
commit
49012b93e3
2 changed files with 12 additions and 5 deletions
|
@ -28,7 +28,12 @@ var debug = {
|
|||
return;
|
||||
}
|
||||
|
||||
openURL(new java.net.URL(haste));
|
||||
try {
|
||||
openURL(new java.net.URL(haste));
|
||||
} catch (e) {
|
||||
LogHelper.error("Error Open Link");
|
||||
LogHelper.error(e);
|
||||
}
|
||||
|
||||
var content = new javafx.scene.input.ClipboardContent();
|
||||
content.putString(haste);
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
|
@ -18,7 +17,9 @@
|
|||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.JsonParser;
|
||||
|
||||
import pro.gravit.launcher.Launcher;
|
||||
import pro.gravit.launcher.LauncherAPI;
|
||||
import pro.gravit.launcher.LauncherNetworkAPI;
|
||||
import pro.gravit.launcher.api.AuthService;
|
||||
import pro.gravit.launcher.events.request.AuthRequestEvent;
|
||||
import pro.gravit.launcher.guard.LauncherGuardManager;
|
||||
|
@ -27,6 +28,7 @@
|
|||
import pro.gravit.launcher.hwid.HWID;
|
||||
import pro.gravit.launcher.hwid.OshiHWIDProvider;
|
||||
import pro.gravit.launcher.managers.ConsoleManager;
|
||||
import pro.gravit.launcher.managers.GsonManager;
|
||||
import pro.gravit.launcher.managers.HasherManager;
|
||||
import pro.gravit.launcher.managers.HasherStore;
|
||||
import pro.gravit.launcher.request.Request;
|
||||
|
@ -35,9 +37,9 @@
|
|||
import pro.gravit.utils.HTTPRequest;
|
||||
|
||||
public class FunctionalBridge {
|
||||
@LauncherAPI
|
||||
public class HasteResponse {
|
||||
String key;
|
||||
@LauncherNetworkAPI
|
||||
public String key;
|
||||
}
|
||||
@LauncherAPI
|
||||
public static ScheduledExecutorService threadPool = Executors.newScheduledThreadPool(0);
|
||||
|
@ -154,7 +156,7 @@ public static String getLauncherVersion() {
|
|||
@LauncherAPI
|
||||
public static String hastebin(String hasteserver, String log) throws IOException {
|
||||
JsonParser parser = new JsonParser();
|
||||
Gson gson = new Gson();
|
||||
Gson gson = Launcher.gsonManager.gson;
|
||||
|
||||
URL url = new URL(hasteserver + "documents");
|
||||
|
||||
|
|
Loading…
Reference in a new issue