Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
inventionpro authored Oct 13, 2024
1 parent 47d7e90 commit 72b839f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ window.setStringForLang = setStringForLang;
function loadPanelFor(id) {
let cur = document.getElementById('lang-select').value;
document.querySelector('.panel').innerHTML = `<h2>${id.replaceAll('.',' > ')}</h2>
<p>${getStringForLang(main, id)}</p>
<p>${getStringForLang(main??Object.keys(data)[0], id)}</p>
<hr>
<textarea id="editor" class="editor" onkeyup="setStringForLang('${cur}', this.value, '${id}')">${getStringForLang(cur, id)}</textarea>`;
}
Expand Down

0 comments on commit 72b839f

Please sign in to comment.