Merge pull request #393 from ronaldheft/fix-on-ready-multiple-calls

fix: onReady called multiple times
This commit is contained in:
advplyr authored and GitHub committed 2022-09-19 16:46:00 -05:00
commit 3b285db21a
1 file changed
+4 -2
+4 -2
View File
@@ -155,8 +155,10 @@ export default {
}
// Settings have been loaded (at least once, so it's safe to kickoff onReady)
this.settingsLoaded = true
this.notifyOnReady()
if (!this.settingsLoaded) {
this.settingsLoaded = true
this.notifyOnReady()
}
},
setListeners() {
// if (!this.$server.socket) {