Skip to content

Commit

Permalink
fix: remove beforeunload event
Browse files Browse the repository at this point in the history
  • Loading branch information
wqcstrong committed Dec 6, 2023
1 parent f239c8a commit 6baf819
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ export default class PageSpy {
new DatabasePlugin(),
);
this.init();
window.addEventListener('beforeunload', () => {
socketStore.close();
});
}

loadPlugins(...args: PageSpyPlugin[]) {
Expand Down

0 comments on commit 6baf819

Please sign in to comment.