Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/extensions/default/DebugCommands/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ define(function (require, exports, module) {

function setLanguage(event) {
locale = $select.val();
$submit.prop("disabled", false);
$submit.prop("disabled", locale === (curLocale === null ? "" : curLocale));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the OR operator here instead of inline IF: locale === (currLocal || "")

}

// returns the localized label for the given locale
Expand Down