Skip to content

Commit

Permalink
Fix disabling Furo dark mode on Safari (#446)
Browse files Browse the repository at this point in the history
#437 broke Safari's
dark mode. Now disabling dark mode works properly for Chrome, Firefox,
and Safari.
  • Loading branch information
Eric-Arellano authored Jul 3, 2023
1 parent 7c50849 commit a0b7db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
<body>
{% block body %}
<script>
{#- QISKIT CHANGE: start. Set default theme to light mode. -#}
document.body.dataset.theme = localStorage.getItem("theme") || "light";
{#- QISKIT CHANGE: start. Force light mode. -#}
document.body.dataset.theme = "light";
{#- QISKIT CHANGE: end. -#}
</script>
{% endblock %}
Expand Down

0 comments on commit a0b7db2

Please sign in to comment.