From 225f22a2e11642a2c3dcae219a08d5cfd489a426 Mon Sep 17 00:00:00 2001 From: Evgeny Blokhin Date: Tue, 30 Jul 2024 14:42:42 +0200 Subject: [PATCH] Polish external engines --- src_js/third_party/cifplayer.js | 5 +---- src_js/third_party/visavis.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src_js/third_party/cifplayer.js b/src_js/third_party/cifplayer.js index 78a8c60..f74f5e2 100644 --- a/src_js/third_party/cifplayer.js +++ b/src_js/third_party/cifplayer.js @@ -7256,10 +7256,7 @@ var $; const phonon_amp = 6; class $optimade_cifplayer_player extends $.$optimade_cifplayer_player { external_theme_auto() { - const external = this.externals()?.theme; - if (!external) - return; - this.$.$mol_lights(external == 'light' ? true : false); + this.$.$mol_lights(true); } available_overlays() { try { diff --git a/src_js/third_party/visavis.js b/src_js/third_party/visavis.js index d581ff0..4808c83 100644 --- a/src_js/third_party/visavis.js +++ b/src_js/third_party/visavis.js @@ -18669,7 +18669,7 @@ var $; } x_title() { const dict = { - 'pressure': 'P, Gpa', + 'pressure': 'P, GPa', 'temperature': 'T, K', }; return dict[this.x_data_type()];