Skip to content

Commit cba0cc2

Browse files
committed
1 parent 6e45b05 commit cba0cc2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<link rel='icon' type='image/png' href='favicon.png?' alt='Website favicon'>
5050
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
5151
<link rel='preload' fetchpriority='high' href='data.db.gz' as='fetch' type='application/gzip' crossorigin='anonymous'>
52+
<link rel='preload' href='https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.12.0/sql-wasm.wasm' as='fetch' type='application/wasm' crossorigin="anonymous">
5253

5354
<!-- Bootstrap, bootstrap-select, bootstrap-table, bootstrap-icons css -->
5455
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
}
137137

138138
// save values to local storage
139-
window.addEventListener('beforeunload', () => {
139+
window.addEventListener('pagehide', () => {
140140
if (rowCount !== undefined && rowCount !== 0) {
141141
localStorage.setItem('rank', rank)
142142
localStorage.setItem('category', category)

0 commit comments

Comments
 (0)