File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/templates/signal_sets Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -785,8 +785,13 @@ <h5 class="modal-title" id="selectedSignalsModalLabel">Selected indicators</h5>
785785
786786
787787 // Added these two lines to disable bfcache (https://web.dev/articles/bfcache).
788- window . addEventListener ( 'unload' , function ( ) { } ) ;
789- window . addEventListener ( 'beforeunload' , function ( ) { } ) ;
788+ window . addEventListener ( 'pageshow' , ( event ) => {
789+ if ( event . persisted ) {
790+ location . reload ( )
791+ }
792+ } ) ;
793+ { % comment % } window . addEventListener ( 'unload' , function ( ) { } ) ;
794+ window . addEventListener ( 'beforeunload' , function ( ) { } ) ; { % endcomment % }
790795
791796 document . getElementsByName ( 'modes' ) . forEach ( ( el ) => {
792797 el . addEventListener ( 'change' , ( event ) => {
You can’t perform that action at this time.
0 commit comments