SabakiHQ / Sabaki

An elegant Go board and SGF editor for a more civilized age.
https://sabaki.yichuanshen.de/
MIT License
2.39k stars 376 forks source link

The window will automatically close when the page is refreshed #952

Open qcgm1978 opened 6 months ago

qcgm1978 commented 6 months ago

After starting Sabaki, open the developer tools page and press CMD+R to refresh, the window will automatically close. The reason is that App.js defines the beforeunload event. I temporarily commented out the window closing handler.:

// App.js
/*
window.addEventListener('beforeunload', evt => {
      ...
      setTimeout(() => {
        if (sabaki.askForSave()) {
          ...
          sabaki.window.close()
        }
      })
})
*/