mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added different address for express backend
This commit is contained in:
@@ -39,7 +39,7 @@ export class ServerManager {
|
||||
|
||||
getApp().getShortcutManager().addShortcut("togglePause", {
|
||||
label: "Pause data update",
|
||||
callback: () => {
|
||||
keyUpCallback: () => {
|
||||
this.setPaused(!this.getPaused());
|
||||
},
|
||||
code: "Space"
|
||||
@@ -138,7 +138,7 @@ export class ServerManager {
|
||||
|
||||
getConfig(callback: CallableFunction) {
|
||||
var xmlHttp = new XMLHttpRequest();
|
||||
xmlHttp.open("GET", window.location.href.split("?")[0].replace("vite/", "") + "config", true);
|
||||
xmlHttp.open("GET", getApp().getExpressAddress() + "config", true);
|
||||
xmlHttp.onload = function (e) {
|
||||
var data = JSON.parse(xmlHttp.responseText);
|
||||
callback(data);
|
||||
|
||||
Reference in New Issue
Block a user