Version: 2.4.6 Update

This commit is contained in:
AnonymousUser
2023-02-22 17:36:50 +08:00
parent 548339fa58
commit d590d4a70e

View File

@@ -49,7 +49,7 @@ public class MainUI extends JPanel{
int retCode = JOptionPane.showConfirmDialog(null, "Do you want to update config?", "Info", int retCode = JOptionPane.showConfirmDialog(null, "Do you want to update config?", "Info",
JOptionPane.YES_NO_CANCEL_OPTION); JOptionPane.YES_NO_CANCEL_OPTION);
if (retCode == JOptionPane.YES_OPTION) { if (retCode == JOptionPane.YES_OPTION) {
String url = "https://raw.githubusercontent.com/gh0stkey/HaE/gh-pages/Config.yml"; String url = "https://cdn.jsdelivr.net/gh/gh0stkey/HaE@gh-pages/Config.yml";
OkHttpClient httpClient = new OkHttpClient(); OkHttpClient httpClient = new OkHttpClient();
Request httpRequest = new Request.Builder().url(url).get().build(); Request httpRequest = new Request.Builder().url(url).get().build();
try { try {