We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef48f18 commit 528d040Copy full SHA for 528d040
src/templates/signal_sets/signal_sets.html
@@ -785,8 +785,13 @@ <h5 class="modal-title" id="selectedSignalsModalLabel">Selected indicators</h5>
785
786
787
// Added these two lines to disable bfcache (https://web.dev/articles/bfcache).
788
- window.addEventListener('unload', function(){});
789
- window.addEventListener('beforeunload', function(){});
+ window.addEventListener('pageshow', (event) => {
+ if (event.persisted) {
790
+ location.reload()
791
+ }
792
+ });
793
+ {% comment %} window.addEventListener('unload', function(){});
794
+ window.addEventListener('beforeunload', function(){}); {% endcomment %}
795
796
document.getElementsByName('modes').forEach((el) => {
797
el.addEventListener('change', (event) => {
0 commit comments