Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Nov 26, 2024
1 parent 0daa6c5 commit c27a10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/common/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Common.Locale = new(function() {
_4letterLangs = ['pt-pt', 'zh-tw', 'sr-cyrl'];

var _applyLocalization = function(callback) {
_fixRtl();
_clearRtl();
try {
callback && (loadcallback = callback);
if (l10n) {
Expand Down Expand Up @@ -161,7 +161,7 @@ Common.Locale = new(function() {
});
};

var _fixRtl = function(prop, scope) {
var _clearRtl = function() {
if (!_isCurrentRtl() && document.body.classList.contains('rtl')) {
document.body.removeAttribute('dir');
document.body.classList.remove('rtl');
Expand Down

0 comments on commit c27a10b

Please sign in to comment.