Skip to content

Arriving on certain pages sometimes triggers the light theme #1635

@dbitouze

Description

@dbitouze

With version 0.15.1, I noticed a (sorry: random) behavior: with auto mode (using the dark theme) previously selected, arriving on certain pages sometimes (not always) triggers the light theme. The console (sometimes: not each time the bug happens) reads:

Got invalid theme mode: . Resetting to auto. [pydata-sphinx-theme.js:32:12](webpack://pydata_sphinx_theme/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js)
    u pydata-sphinx-theme.js:32
    h pydata-sphinx-theme.js:90
    (Asynchrone : EventListener.handleEvent)
    r mixin.js:12
    937 pydata-sphinx-theme.js:579
    a async module:49
    937 pydata-sphinx-theme.js:1
    Webpack 3
        c
        <anonyme>
        <anonyme>
[PST]: Changed to auto mode using the light theme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions