mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
do not load config if document is hidden.
This commit is contained in:
@@ -99,6 +99,9 @@ export default class Home extends Vue {
|
||||
}
|
||||
|
||||
async LoadRooms() {
|
||||
// do not load config if document is hidden
|
||||
if (document.hidden) return
|
||||
|
||||
this.loading = true
|
||||
|
||||
try {
|
||||
@@ -110,7 +113,7 @@ export default class Home extends Vue {
|
||||
|
||||
|
||||
@Watch('autoRefresh', { immediate: true })
|
||||
onautoRefresh() {
|
||||
onAutoRefresh() {
|
||||
if (this.interval) {
|
||||
clearInterval(this.interval)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user