// ==================== КОНФИГУРАЦИЯ СЕРВЕРА ==================== // This module only sets SERVER_URL. Player name and world ID are handled in main.js // to avoid duplicate prompts. const urlParams = new URLSearchParams(window.location.search); export const SERVER_URL = urlParams.get('server') || 'https://apigrech.mkn8n.ru'; // Защита от mixed content if (location.protocol === 'https:' && SERVER_URL.startsWith('http://')) { console.warn('⚠️ Mixed content warning: page is HTTPS but server URL is HTTP'); alert('⚠️ Предупреждение: страница загружена по HTTPS, но сервер использует HTTP. Это может вызвать проблемы.'); }