mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 00:05:22 +03:00
Remove unfinished light/dark theme switching code.
This commit is contained in:
parent
6f853cbc0a
commit
ea2d59f4fb
3 changed files with 1 additions and 21 deletions
14
main.js
14
main.js
|
@ -238,20 +238,6 @@ $(document).ready(function () {
|
|||
googleAnalyticsConfig.setTrackingPermitted(check);
|
||||
});
|
||||
|
||||
// CSS switch TEST
|
||||
var css = $("#default");
|
||||
$("div#options-window #remove").click(function(){
|
||||
css.remove();
|
||||
});
|
||||
|
||||
$("div#options-window #restore").click(function(){
|
||||
$("head").append(css);
|
||||
});
|
||||
// CSS switch TEST END
|
||||
|
||||
|
||||
|
||||
|
||||
function close_and_cleanup(e) {
|
||||
if (e.type == 'click' && !$.contains($('div#options-window')[0], e.target) || e.type == 'keyup' && e.keyCode == 27) {
|
||||
$(document).unbind('click keyup', close_and_cleanup);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue