about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2022-01-23 13:04:17 -0800
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2022-01-23 17:17:58 -0800
commitb30725eab7cbc898dbdb851d5977a352d1dd2187 (patch)
tree9a05506967de6c93f4161043cd836bbf122bbbf4 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent84322efad553c7a79c80189f2d1b9197c1aa005f (diff)
downloadrust-b30725eab7cbc898dbdb851d5977a352d1dd2187.tar.gz
rust-b30725eab7cbc898dbdb851d5977a352d1dd2187.zip
Update theme on pageshow event
When a user goes forward or back, the page may be rendered from the
back/forward cache (https://web.dev/bfcache/) rather than from scratch. If
they have changed theme in the meantime, that means seeing an incorrect
theme on the page they went forward or back to. The `pageshow` event
fires on such navigations, so we can update the theme based on that event.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions