Skip to content

Commit

Permalink
🌀
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Nov 9, 2021
1 parent 0b5e12c commit 3e254ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function sendData(counterId, queryParams) {
var hasBeacon = typeof navigator !== 'undefined' && navigator.sendBeacon;
if (!hasBeacon || !navigator.sendBeacon(url, ' ')) {
if (typeof fetch !== 'undefined') {
fetch(url, { credentials: 'include' });
fetch(url, { credentials: 'include' }).catch(function () { });
}
else if (typeof Image !== 'undefined') {
new Image().src = url;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function sendData(counterId, queryParams) {
var hasBeacon = typeof navigator !== 'undefined' && navigator.sendBeacon;
if (!hasBeacon || !navigator.sendBeacon(url, ' ')) {
if (typeof fetch !== 'undefined') {
fetch(url, { credentials: 'include' });
fetch(url, { credentials: 'include' }).catch(function () { });
}
else if (typeof Image !== 'undefined') {
new Image().src = url;
Expand Down

0 comments on commit 3e254ba

Please sign in to comment.