add: server status
This commit is contained in:
@ -14,7 +14,11 @@ import { autoUpdater } from 'electron-updater';
|
||||
import log from 'electron-log';
|
||||
import MenuBuilder from './menu';
|
||||
import { resolveHtmlPath } from './util';
|
||||
import { initMinecraftHandlers, initAuthHandlers } from './minecraft-launcher';
|
||||
import {
|
||||
initMinecraftHandlers,
|
||||
initAuthHandlers,
|
||||
initServerStatusHandler,
|
||||
} from './minecraft-launcher';
|
||||
|
||||
class AppUpdater {
|
||||
constructor() {
|
||||
@ -44,9 +48,6 @@ if (isDebug) {
|
||||
require('electron-debug').default();
|
||||
}
|
||||
|
||||
// Инициализация обработчиков Minecraft
|
||||
initMinecraftHandlers();
|
||||
|
||||
const installExtensions = async () => {
|
||||
const installer = require('electron-devtools-installer');
|
||||
const forceDownload = !!process.env.UPGRADE_EXTENSIONS;
|
||||
@ -77,6 +78,7 @@ const createWindow = async () => {
|
||||
show: false,
|
||||
width: 1024,
|
||||
height: 728,
|
||||
autoHideMenuBar: true,
|
||||
icon: getAssetPath('icon.png'),
|
||||
webPreferences: {
|
||||
webSecurity: false,
|
||||
@ -118,6 +120,7 @@ const createWindow = async () => {
|
||||
|
||||
initAuthHandlers();
|
||||
initMinecraftHandlers();
|
||||
initServerStatusHandler();
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user