Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
prosif committed Dec 30, 2024
1 parent 761a822 commit eaa16cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/link-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if (baseDir.endsWith('src')) {

const { getConfigValue } = require('homegames-common');

const MAP_ENABLED = getConfigValue('MAP_ENABLED', false);

const API_URL = getConfigValue('API_URL', 'https://api.homegames.io:443');
const parsedUrl = new URL(API_URL);
const isSecure = parsedUrl.protocol == 'https:';
Expand Down Expand Up @@ -82,7 +84,8 @@ const linkConnect = (msgHandler) => new Promise((resolve, reject) => {
client.on('open', () => {
getClientInfo().then(clientInfo => {
const toSend = Object.assign({}, clientInfo);
toSend.mapEnabled = true;//process.env.MAP_ENABLED ? true : false;
toSend.mapEnabled = MAP_ENABLED;

client.send(JSON.stringify({
type: 'register',
data: toSend
Expand Down

0 comments on commit eaa16cb

Please sign in to comment.