Skip to content

Commit

Permalink
Ensure we don't error out when FastDesignProvider is undefined (#6832)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored May 14, 2024
1 parent dff4b5d commit c7af196
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion panel/theme/fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ class FastWrapper(ReactiveHTML):
_scripts = {
'render': """
let accent, bg, luminance
if (window._JUPYTERLAB) {
if (!window.fastDesignProvider) {
return
} else if (window._JUPYTERLAB) {
accent = getComputedStyle(document.body).getPropertyValue('--jp-brand-color0').trim();
bg = getComputedStyle(document.body).getPropertyValue('--jp-layout-color0').trim();
let color = getComputedStyle(document.body).getPropertyValue('--jp-ui-font-color0').trim();
Expand Down

0 comments on commit c7af196

Please sign in to comment.