Set broken mojang services to green until their API is fixed.

This commit is contained in:
Daniel Scalzi 2020-09-13 13:35:49 -04:00
parent 25e7e5aa55
commit c0776dcf61
No known key found for this signature in database
GPG Key ID: D18EA3FB4B142A57
2 changed files with 6 additions and 1 deletions

View File

@ -173,6 +173,11 @@ const refreshMojangStatuses = async function(){
for(let i=0; i<statuses.length; i++){
const service = statuses[i]
// Mojang API is broken for these two. https://bugs.mojang.com/browse/WEB-2303
if(service.service === 'sessionserver.mojang.com' || service.service === 'minecraft.net') {
service.status = 'green'
}
if(service.essential){
tooltipEssentialHTML += `<div class="mojangStatusContainer">
<span class="mojangStatusIcon" style="color: ${Mojang.statusToHex(service.status)};">&#8226;</span>

View File

@ -30,7 +30,7 @@
<div class="mediaDivider"></div>
<div id="externalMedia">
<div class="mediaContainer">
<a href="https://github.com/dscalZi/HeliosLauncher" class="mediaURL" id="linkURL">
<a href="https://github.com/dscalzi/HeliosLauncher" class="mediaURL" id="linkURL">
<svg id="linkSVG" class="mediaSVG" viewBox="35.34 34.3575 70.68 68.71500">
<g>
<path d="M75.37,65.51a3.85,3.85,0,0,0-1.73.42,8.22,8.22,0,0,1,.94,3.76A8.36,8.36,0,0,1,66.23,78H46.37a8.35,8.35,0,1,1,0-16.7h9.18a21.51,21.51,0,0,1,6.65-8.72H46.37a17.07,17.07,0,1,0,0,34.15H66.23A17,17,0,0,0,82.77,65.51Z"/>