mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 00:34:41 -05:00
add Region settings
This commit is contained in:
parent
5007b12d2a
commit
1ff67157a9
1 changed files with 14 additions and 2 deletions
|
@ -660,7 +660,10 @@ But Please note that unofficial instances can add the same lock icon, so please
|
|||
</a>
|
||||
|
||||
|
||||
|
||||
<a href="/settings" style="text-decoration: none;" class="dropdown__item">
|
||||
<i class="fa-light fa-globe"></i>
|
||||
Region settings </a>
|
||||
|
||||
<% if (!a) { %>
|
||||
|
||||
<a href="/watch?v=<%=inv_vid.videoId%>&a=false" title="Ambient mode uses a lighting effect to make watching videos more immersive by casting gentle colors from the video into your screen’s background! owo" style="text-decoration: none;" class="dropdown__item">
|
||||
|
@ -1743,7 +1746,16 @@ if (isFirstLoad) {
|
|||
}
|
||||
|
||||
</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 -->
|
||||
|
|
Loading…
Reference in a new issue