From 9224531b62cb835e0d0050871d502c587f510b60 Mon Sep 17 00:00:00 2001 From: GeekCorner <45696571+GeekCornerGH@users.noreply.github.com> Date: Sat, 10 Dec 2022 05:49:47 +0100 Subject: [PATCH] fix: variable references (#227) * fix: Launcher freeze * Fix syntax. Co-authored-by: Daniel Scalzi --- app/assets/js/scripts/settings.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/js/scripts/settings.js b/app/assets/js/scripts/settings.js index a8cda8c5ff..2a4ad209df 100644 --- a/app/assets/js/scripts/settings.js +++ b/app/assets/js/scripts/settings.js @@ -391,13 +391,13 @@ ipcRenderer.on(MSFT_OPCODE.REPLY_LOGIN, (_, ...arguments_) => { if (Object.prototype.hasOwnProperty.call(queryMap, 'error')) { switchView(getCurrentView(), viewOnClose, 500, 500, () => { // TODO Dont know what these errors are. Just show them I guess. - // This is probably if you messed up the app registration with Azure. - console.log('Error getting authCode, is Azure application registered correctly?') - console.log(error) - console.log(error_description) - console.log('Full query map', queryMap) + // This is probably if you messed up the app registration with Azure. let error = queryMap.error // Error might be 'access_denied' ? let errorDesc = queryMap.error_description + console.log('Error getting authCode, is Azure application registered correctly?') + console.log(error) + console.log(errorDesc) + console.log('Full query map: ', queryMap) setOverlayContent( error, errorDesc, @@ -1582,4 +1582,4 @@ function prepareSettings(first = false) { } // Prepare the settings UI on startup. -//prepareSettings(true) \ No newline at end of file +//prepareSettings(true)