Skip to content

Commit 8abe17a

Browse files
Nemo157Joshua Nelson
authored and
Joshua Nelson
committed
Duplicate comment about storage event iframe
1 parent 62044a5 commit 8abe17a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: static/storage-change-detection.html

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<html lang="en">
33
<head>
44
<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+
-->
511
<script type="text/javascript">
612
onstorage = function(ev) {
713
parent.postMessage({

0 commit comments

Comments
 (0)