We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62044a5 commit 8abe17aCopy full SHA for 8abe17a
static/storage-change-detection.html
@@ -2,6 +2,12 @@
2
<html lang="en">
3
<head>
4
<meta charset="UTF-8">
5
+ <!--
6
+ Only other windows get notified when we change local storage, so
7
+ this is used in an invisible iframe to send a message to JS in
8
+ ../templates/rustdoc/body.html when local storage changes so we can
9
+ detect rustdoc changing the theme
10
+ -->
11
<script type="text/javascript">
12
onstorage = function(ev) {
13
parent.postMessage({
0 commit comments