Favicon override for those pesky PE icons

This commit is contained in:
Cryptkeeper 2015-11-08 19:08:31 -06:00
parent ad6caa2f08
commit f6ee6568a1
6 changed files with 15 additions and 2 deletions

5
app.js

@ -21,6 +21,11 @@ function pingAll() {
logger.log('error', 'Failed to ping ' + network.ip + ': ' + JSON.stringify(err)); logger.log('error', 'Failed to ping ' + network.ip + ': ' + JSON.stringify(err));
} }
// If we have favicon override specified, use it.
if (res && config.faviconOverride && config.faviconOverride[network.name]) {
res.favicon = config.faviconOverride[network.name];
}
server.io.sockets.emit('update', { server.io.sockets.emit('update', {
result: res, result: res,
error: err, error: err,

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

@ -1,4 +1,4 @@
var MISSING_FAVICON_BASE64 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHTUlEQVR4XtVba2wbVRb+zp1xk9BtgQpB7G6iFkochxUPCbELQkirhUVAJViJAhJPgbaLKI/GDk2hYpVdCi0lTlrKu/yAXWkBtUBBFAQCKoSg8IfHSsR2YtSS0jhBQEFuycOee1bXqVM38WM8D493fiXyPed83zfnvs69Q3DzYVBgoLsFeuZ8lnQ2mEMgWgKSp0iJEwQwT4WXwJQQ+BksxsC8DxoGmMWXQpd7Rpb17XcTIjnunHuEfyh9ITOupiyugIZT7cQgaXzDQuwiou0jbQs+AfVIO/5m2zomwG+/7lwkdbGSDbkSQix1EmTelxIDQt+mT+nPDp+58aATMWwLEEhETgJjjQFeJUDHOQGqsg95mEGP6wZv+u6M/p8qty/dwroAu3t0vz+9iqT8BwtxvB0QVm0l5EGNtb+PtH/7FGi7YcWPJQH8g6tDkPq/AD7XSlDHbVh+RuS7eaR9U6Ja31ULEIiHbzUkPyGEaKw2mJvtJfhXYrpjNBR9oZo45gXY3aMH/OktDNxRTYBat2XC1tG24U6zXcKUAEv29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I/J2ZxweCoPoE53I3RekURxEqjCYpEAQ4xIXC5T0Xo+dZQLcVfAmqvwwTSoCq1wa9ZUgEBNWbKZf7We99S43I/ImAz0YBgY1Z/P9gCT7RTiebvSp0RKZoBS0tY0V1F6t+IBQE6w5Ec5OaCQzjV44lCHCYHWcy7dx5oP/+pcfkWlo+LyK/DyyOunez52oGvkLGvBKmQBLvfc9bzoCdA4j2qF5DudzvBiIOHJVV110Gou9G4SK+/y6nUivR0PAgbdv2bpQ1cWk0nR4lRPeD6FYGOMp6Ae5zjFlWijZ0Vtj3vMcYmBeFmaXp/pvjAYwe/XhSQFjFwTxPgLtizi4+5hgzP0j2UADssDQ6OzcDmBEVhG4gbD/eTm5tLmdYWu0X9rypAlwHkdnMPCIWf5HNnM/PDmvphwJQDIp2XL6zc20cS+gtrACvQ/U5Bp4vjsur7gfRIRQKp1FbqyAaCZH3g+hSAFco4Knvt5YxIV5ka4cf2Bh70qt8XL5PLnbdZUK0LEpgjPO1kqLt/mFiKeVyJaddImeBUkKp604XkU3lfp2klO2/T7HKE7mR8vk/x+ERyQX6b6hTp16khcJGYv5cHGbVolXgDyTydcrnD8XlURYAPUy6ixLbVv9IXMZJ0Ivvv8rMiyiXe7rc/SoCoBggp02rx+nT84V5UaUzxlGVEBF7ofsDjB69vtJUWzEA56yhqakGtbWzfKJbSLUl6UBZ/HVWZIfDvA51dU8lcWFrZU8MgD7ZorV1HHx/pgJXK+AyMCzq1+2XPk8SYEh1G4ieJGMOlrNPRYVQpQztBQXq65ugevb3eWCCqI4hYATsL/RFP9ITqnq8+Ps8sx1z3QORF1Ff35HUly6lx38BC3SpK3sT2hIAAAAASUVORK5CYII=";
var tooltip = $('#tooltip'); var tooltip = $('#tooltip');

@ -81,7 +81,15 @@
"/images/compass.png": "assets/images/compass.png", "/images/compass.png": "assets/images/compass.png",
"/js/site.js": "assets/js/site.js", "/js/site.js": "assets/js/site.js",
"/js/util.js": "assets/js/util.js", "/js/util.js": "assets/js/util.js",
"/css/main.css": "assets/css/main.css" "/css/main.css": "assets/css/main.css",
"/favicons/hypixelpe.png": "assets/images/favicons/hypixelpe.png",
"/favicons/lifeboat.png": "assets/images/favicons/lifeboat.png",
"/favicons/mineplex.png": "assets/images/favicons/mineplex.png"
},
"faviconOverride": {
"Hypixel PE": "/favicons/hypixelpe.png",
"LifeBoat": "/favicons/lifeboat.png",
"Mineplex": "/favicons/mineplex.png"
}, },
"site": { "site": {
"port": 80, "port": 80,