Skip to content

Commit

Permalink
TF-2533 part 3 replace beforeunload with pagehide
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora committed Apr 23, 2024
1 parent 6786bba commit 99b7a98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb> {
window.parent.addEventListener('message', handleMessage, false);
window.addEventListener('click', handleOnClickLink, true);
window.addEventListener('load', handleOnLoad);
window.addEventListener('beforeunload', (event) => {
window.addEventListener('pagehide', (event) => {
window.parent.removeEventListener('message', handleMessage, false);
});
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1026,8 +1026,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: memory_fixed_in_cnb
resolved-ref: "0292fa1b9c8bb018b910c1b8248be231b88a97b6"
ref: "bugfix/composer-reply-memory-leak"
resolved-ref: "7a20f8e924e403eb54f4a6177c3c8ecb0c7b3687"
url: "https://github.com/linagora/html-editor-enhanced.git"
source: git
version: "2.5.1"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dependencies:
html_editor_enhanced:
git:
url: https://github.com/linagora/html-editor-enhanced.git
ref: memory_fixed_in_cnb
ref: bugfix/composer-reply-memory-leak

jmap_dart_client:
git:
Expand Down

0 comments on commit 99b7a98

Please sign in to comment.