Skip to content

Commit

Permalink
Revert "Add error log, add new field to js to cpature full url with p…
Browse files Browse the repository at this point in the history
…arameter"

This reverts commit cee12fc.
  • Loading branch information
MathieuLamiot committed Jun 27, 2024
1 parent dd2297a commit e41a982
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 25 deletions.
2 changes: 0 additions & 2 deletions assets/js/lcp-beacon.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class RocketLcpBeacon {
data_check.append('rocket_lcp_nonce', this.config.nonce);
data_check.append('url', this.config.url);
data_check.append('is_mobile', this.config.is_mobile);
data_check.append('current_url', document.location.href);

const lcp_data_response = await fetch(this.config.ajax_url, {
method: "POST",
Expand Down Expand Up @@ -307,7 +306,6 @@ class RocketLcpBeacon {
data.append('is_mobile', this.config.is_mobile);
data.append('images', JSON.stringify(this.performanceImages));
data.append('status', this._getFinalStatus());
data.append('current_url', document.location.href);

fetch(this.config.ajax_url, {
method: "POST",
Expand Down
2 changes: 1 addition & 1 deletion assets/js/lcp-beacon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e41a982

Please sign in to comment.