mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
add test for closing browser tab
This commit is contained in:
@@ -86,9 +86,6 @@ export default {
|
||||
created () {
|
||||
window.addEventListener('beforeunload', this.leavingSqliteviz)
|
||||
},
|
||||
unmounted () {
|
||||
window.removeEventListener('beforeunload', this.leavingSqliteviz)
|
||||
},
|
||||
methods: {
|
||||
leavingSqliteviz (event) {
|
||||
if (this.tabs.some(tab => tab.isUnsaved)) {
|
||||
|
||||
Reference in New Issue
Block a user