mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-13 16:17:46 +00:00
fix: use window.URL to avoid document.URL shadowing in inline handler
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div class="footer-lang">
|
||||
<label for="lang-select" class="sr-only">{{ t_language }}</label>
|
||||
<select id="lang-select" class="lang-select" autocomplete="off" onchange="if(this.value){var u=new URL(this.value,window.location.origin);u.search=window.location.search;window.location.href=u.href}">
|
||||
<select id="lang-select" class="lang-select" autocomplete="off" onchange="if(this.value){var u=new(window.URL)(this.value,window.location.origin);u.search=window.location.search;window.location.href=u.href}">
|
||||
{% for l in all_locales %}
|
||||
<option value="/{{ l.tag() }}"{% if *l == locale %} selected{% endif %}>{{ l.name() }}</option>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user