diff options
| author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2022-01-23 13:04:17 -0800 |
|---|---|---|
| committer | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2022-01-23 17:17:58 -0800 |
| commit | b30725eab7cbc898dbdb851d5977a352d1dd2187 (patch) | |
| tree | 9a05506967de6c93f4161043cd836bbf122bbbf4 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 84322efad553c7a79c80189f2d1b9197c1aa005f (diff) | |
| download | rust-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
