mirror of
https://codeberg.org/ashley/poke
synced 2026-04-09 05:27:59 +00:00
add Region settings
This commit is contained in:
@@ -660,6 +660,9 @@ But Please note that unofficial instances can add the same lock icon, so please
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
<a href="/settings" style="text-decoration: none;" class="dropdown__item">
|
||||||
|
<i class="fa-light fa-globe"></i>
|
||||||
|
Region settings </a>
|
||||||
|
|
||||||
<% if (!a) { %>
|
<% if (!a) { %>
|
||||||
|
|
||||||
@@ -1743,7 +1746,16 @@ if (isFirstLoad) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
const languageCode = localStorage.getItem("Language");
|
||||||
|
const regionCode = localStorage.getItem("Region");
|
||||||
|
const currentURL = location.href;
|
||||||
|
|
||||||
|
if (languageCode && regionCode) {
|
||||||
|
location.href = currentURL + `®ion=${regionCode}&hl=${languageCode}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
<!-- app.js -->
|
<!-- app.js -->
|
||||||
<!-- app.js -->
|
<!-- app.js -->
|
||||||
<!-- app.js -->
|
<!-- app.js -->
|
||||||
|
|||||||
Reference in New Issue
Block a user