Skip to content

Commit a26f0e5

Browse files
author
Ali Razmjoo
authored
Merge pull request #333 from spiderxm/development
Refactor Javascript Code
2 parents cb9d691 + 538fda8 commit a26f0e5

File tree

3 files changed

+497
-539
lines changed

3 files changed

+497
-539
lines changed

web/static/index.html

-7
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,6 @@
185185

186186
<script>
187187
const translations = {{ encoded_data | safe}};
188-
const param = new URLSearchParams(window.location.search).get("lang");
189-
const menu = document.getElementById("language-menu")
190-
for (let i = 0; i < menu.length; i++) {
191-
if (menu.options[i].value === param) {
192-
menu.value = param
193-
}
194-
}
195188
</script>
196189
<!-- main.js used as general js file for index.html -->
197190
<script src="/js/main.js"></script>

0 commit comments

Comments
 (0)