mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
possible fix of DOM text reinterpreted as HTML
This commit is contained in:
parent
701d01b8a7
commit
8b2d1ca9b2
1 changed files with 4 additions and 4 deletions
|
@ -155,17 +155,17 @@ document.getElementById('openReceivedFilesFolder').addEventListener('click', ()
|
||||||
|
|
||||||
var theme_path = "../node_modules/bootswatch/dist/"+ config.theme +"/bootstrap.min.css";
|
var theme_path = "../node_modules/bootswatch/dist/"+ config.theme +"/bootstrap.min.css";
|
||||||
document.getElementById("theme_selector").value = config.theme;
|
document.getElementById("theme_selector").value = config.theme;
|
||||||
document.getElementById("bootstrap_theme").href = theme_path;
|
document.getElementById("bootstrap_theme").href = escape(theme_path);
|
||||||
} else {
|
} else {
|
||||||
var theme_path = "../node_modules/bootstrap/dist/css/bootstrap.min.css";
|
var theme_path = "../node_modules/bootstrap/dist/css/bootstrap.min.css";
|
||||||
document.getElementById("theme_selector").value = 'default';
|
document.getElementById("theme_selector").value = 'default';
|
||||||
document.getElementById("bootstrap_theme").href = theme_path;
|
document.getElementById("bootstrap_theme").href = escape(theme_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Update channel selector
|
// Update channel selector
|
||||||
document.getElementById("update_channel_selector").value = config.update_channel;
|
document.getElementById("update_channel_selector").value = config.update_channel;
|
||||||
document.getElementById("updater_channel").innerHTML = config.update_channel;
|
document.getElementById("updater_channel").innerHTML = escape(config.update_channel);
|
||||||
|
|
||||||
// Update tuning range fmin fmax
|
// Update tuning range fmin fmax
|
||||||
document.getElementById("tuning_range_fmin").value = config.tuning_range_fmin;
|
document.getElementById("tuning_range_fmin").value = config.tuning_range_fmin;
|
||||||
|
@ -577,7 +577,7 @@ document.getElementById('openReceivedFilesFolder').addEventListener('click', ()
|
||||||
}
|
}
|
||||||
|
|
||||||
//update path to css file
|
//update path to css file
|
||||||
document.getElementById("bootstrap_theme").href = theme_path
|
document.getElementById("bootstrap_theme").href = escape(theme_path)
|
||||||
|
|
||||||
config.theme = theme;
|
config.theme = theme;
|
||||||
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
||||||
|
|
Loading…
Reference in a new issue