Skip to content

Commit

Permalink
Set broken mojang services to green until their API is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed Sep 13, 2020
1 parent 25e7e5a commit c0776dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/assets/js/scripts/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {

This comment has been minimized.

Copy link
@jordanamr

jordanamr Dec 9, 2020

It looks like the minecraft.net check is fixed on their side. Only the sessionserver is broken atm

This comment has been minimized.

Copy link
@dscalzi

dscalzi Dec 9, 2020

Author Owner

I'll update this later

This comment has been minimized.

Copy link
@dscalzi

dscalzi Dec 10, 2020

Author Owner
service.status = 'green'
}

if(service.essential){
tooltipEssentialHTML += `<div class="mojangStatusContainer">
<span class="mojangStatusIcon" style="color: ${Mojang.statusToHex(service.status)};">&#8226;</span>
Expand Down
2 changes: 1 addition & 1 deletion app/landing.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down

0 comments on commit c0776dc

Please sign in to comment.