Skip to content

Commit 4e39fe8

Browse files
Fix
1 parent 540eeb3 commit 4e39fe8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

_just/js/copyright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ display: block;
4242
z-index: 9;
4343
`;
4444
const currentYear = new Date().getFullYear();
45-
const copyrightText = `
45+
let copyrightText = `
4646
<span style="${copyrightTextStyles}">
4747
<a href="${copyrightTextLink}" target="_blank">
4848
<span style="opacity: 0.5;text-decoration: underline;text-decoration-color: rgba(255,255,255,0.33);" class="txt12" id="copyrightfootertext">© 2025-${currentYear} JustStudio.</span>

_just/js/lang.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ SOFTWARE.
2626

2727
let Language;
2828
let upd = true;
29+
let prepathname = "/Encoder"
2930

3031
if (!localStorage.getItem('Language') && window.location.search === '?en') {
3132
Language = 'en';
@@ -47,10 +48,10 @@ if (localStorage.getItem('Language')) {
4748
}
4849
}
4950

50-
if (!(window.location.pathname.endsWith('/')) && window.location.pathname.endsWith('/en') && Language === 'en') {
51-
window.location.pathname = window.location.pathname.replace(/\/en$/, '/');
52-
} else if (Language === 'ru' && !window.location.pathname.endsWith('/ru')) {
53-
window.location.pathname = window.location.pathname.replace(/\/en$/, '/ru') || window.location.pathname + 'ru';
51+
if (window.location.pathname == `${prepathname}/en` && Language === 'en') {
52+
window.location.pathname = window.location.pathname = `${prepathname}/`;
53+
} else if (Language === 'ru' && !window.location.pathname == `${prepathname}/ru`) {
54+
window.location.pathname = `${prepathname}/ru`;
5455
}
5556

5657
document.getElementById('l-en').addEventListener('click', function() {

0 commit comments

Comments
 (0)