This repository was archived by the owner on Apr 4, 2025. It is now read-only.
Commit d6fe722
committed
fix(hint): properly clean up when location is changed before DOM content has been loaded
The `beforeunload` event was never fired is the location was changed before the DOM content had
been loaded (e.g. directly inside a `<script>` tag. The `unload` event is fired more consistently.
Fixes angular/batarang#2901 parent 13107a5 commit d6fe722
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments