File tree 3 files changed +3
-1
lines changed
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ English | [简体中文](./CHANGELOG_CN.md)
4
4
5
5
- ` Feat(Netwrk) ` Add new option ` network.ignoreUrlRegExp ` to skip some requests. (PR #623 )
6
6
- ` Fix(Core) ` Fix prototype pollution in ` vConsole.setOption() ` . (issue #616 #621 )
7
+ - ` Fix(Network) ` Fix possible "Cannot read property" error by ` sendBeacon ` . (issue #615 )
7
8
8
9
9
10
## 3.15.0 (2022-11-02)
Original file line number Diff line number Diff line change 4
4
5
5
- ` Feat(Netwrk) ` 新增配置项 ` network.ignoreUrlRegExp ` 以跳过一些请求。 (PR #623 )
6
6
- ` Fix(Core) ` 修复 ` vConsole.setOption() ` 中可能存在的原型污染问题。 (issue #616 #621 )
7
+ - ` Fix(Network) ` 修复可能由 ` sendBeacon ` 引发的 "Cannot read property" 错误。 (issue #615 )
7
8
8
9
9
10
## 3.15.0 (2022-11-02)
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export class VConsoleNetworkModel extends VConsoleModel {
105
105
* @private
106
106
*/
107
107
private mockSendBeacon ( ) {
108
- if ( ! window . navigator . sendBeacon ) {
108
+ if ( ! window ? .navigator ? .sendBeacon ) {
109
109
return ;
110
110
}
111
111
window . navigator . sendBeacon = BeaconProxy . create ( ( item : VConsoleNetworkRequestItem ) => {
You can’t perform that action at this time.
0 commit comments