Skip to content

Commit

Permalink
refactor: 不覆盖 gc
Browse files Browse the repository at this point in the history
  • Loading branch information
typed-sigterm committed Sep 30, 2024
1 parent 187f15e commit 03a63c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const showCanaryAlertNow = ref(showCanaryAlert.value);
function handleClose() {
emit('close');
promiseTimeout(500).then(gc);
promiseTimeout(500).then(() => window.gc?.());
showCanaryAlertNow.value = showCanaryAlert.value;
}
</script>
Expand Down
2 changes: 0 additions & 2 deletions app/utils/gc.ts

This file was deleted.

0 comments on commit 03a63c3

Please sign in to comment.