Commit 3dd53fa7 authored by Sean Stangl's avatar Sean Stangl

Stilaj redaktoj en app.js

parent 4336c768
......@@ -85,13 +85,12 @@ function add_language_option(value, text) {
langfield.options.add(option);
}
// Gets the current language option (currently for supplying tags to screen readers).
function get_selected_language() {
return langfield.value;
}
// saves the selected language
// Saves the selected language option to localStorage.
function save_selected_language() {
localStorage.setItem("tvLang", get_selected_language());
}
......@@ -296,7 +295,6 @@ function getqueryobj() {
// Load set language from localStorage otherwise detect and set the default
// language based on the browser's language preference.
var language = localStorage.getItem("tvLang") || navigator.language;
if (!language)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment