Skip to content

Commit

Permalink
Duplicate comment about storage event iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 authored and Joshua Nelson committed Oct 22, 2020
1 parent 62044a5 commit 8abe17a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions static/storage-change-detection.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<!--
Only other windows get notified when we change local storage, so
this is used in an invisible iframe to send a message to JS in
../templates/rustdoc/body.html when local storage changes so we can
detect rustdoc changing the theme
-->
<script type="text/javascript">
onstorage = function(ev) {
parent.postMessage({
Expand Down

0 comments on commit 8abe17a

Please sign in to comment.