From 5a8ae0485a57a075aa3866dc381d4e39ae961679 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Sat, 7 Apr 2018 18:24:13 -0400 Subject: [PATCH] Minor fixes for the Java download error overlay. --- app/assets/js/actionbinder.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/assets/js/actionbinder.js b/app/assets/js/actionbinder.js index 22dffe2..965be88 100644 --- a/app/assets/js/actionbinder.js +++ b/app/assets/js/actionbinder.js @@ -214,13 +214,11 @@ function asyncSystemScan(launchAfter = true){ sysAEx.on('message', (m) => { if(m.content === 'validateJava'){ - //m.result = null - if(m.result == null){ // If the result is null, no valid Java installation was found. // Show this information to the user. setOverlayContent( - 'No Compatible
Java Installation Found..', + 'No Compatible
Java Installation Found', 'In order to join WesterosCraft, you need a 64-bit installation of Java 8. Would you like us to install a copy? By installing, you accept Oracle\'s license agreement.', 'Install Java' ) @@ -256,11 +254,14 @@ function asyncSystemScan(launchAfter = true){ // Oracle JRE enqueue failed. Probably due to a change in their website format. // User will have to follow the guide to install Java. setOverlayContent( - 'Yikes!
Java download failed.', - 'Unfortunately we\'ve encountered an issue while attempting to install Java. You will need to install a copy yourself. Please check out this guide for more details and instructions.', - 'Got it' + 'Unexpected Issue:
Java Download Failed', + 'Unfortunately we\'ve encountered an issue while attempting to install Java. You will need to manually install a copy. Please check out our Troubleshooting Guide for more details and instructions.', + 'I Understand' ) - setOverlayHandler(null) + setOverlayHandler(() => { + toggleOverlay(false) + toggleLaunchArea(false) + }) toggleOverlay(true) sysAEx.disconnect()