DEV: Allow color scheme loading to be used async (#21836)

This commit is contained in:
Penar Musaraj 2023-05-31 12:30:12 -04:00 committed by GitHub
parent 4a0f77633d
commit d5b3db409e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export function loadColorSchemeStylesheet(
darkMode = false
) {
const themeId = theme_id ? `/${theme_id}` : "";
ajax(`/color-scheme-stylesheet/${colorSchemeId}${themeId}.json`).then(
return ajax(`/color-scheme-stylesheet/${colorSchemeId}${themeId}.json`).then(
(result) => {
if (result && result.new_href) {
const elementId = darkMode ? "cs-preview-dark" : "cs-preview-light";