From fef0eaafe2ee4e9b34db434344ab4f6323a02f1a Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Fri, 12 May 2017 14:20:47 +0700 Subject: [PATCH] Brace yourself! --- source/kmwosk.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/kmwosk.js b/source/kmwosk.js index 328bd75b04..ba1566ee1d 100644 --- a/source/kmwosk.js +++ b/source/kmwosk.js @@ -1028,11 +1028,15 @@ // We use a separate variable here to keep down on MutationObserver messages in keymanweb.js code. var keyboardName = ""; - if(kbdName == lgName) keyboardName=lgName; else keyboardName=lgName+' ('+kbdName+')'; - + if(kbdName == lgName) { + keyboardName=lgName; + } else { + keyboardName=lgName+' ('+kbdName+')'; + } // It sounds redundant, but this dramatically cuts down on browser DOM processing. - if(t.innerHTML != keyboardName) + if(t.innerHTML != keyboardName) { t.innerHTML = keyboardName; + } } catch(ex){} }