Skip to content

Commit

Permalink
Fixed sass do not store result in DB bug (#6557)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal authored Apr 25, 2024
2 parents 6040562 + 6748e41 commit 91077f9
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 40 deletions.
21 changes: 13 additions & 8 deletions assets/js/lcp-beacon.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,20 @@ function main() {
fetch(rocket_lcp_data.ajax_url, {
method: "POST",
credentials: 'same-origin',
body: data
body: data,
headers: {
'wpr-saas-no-intercept': true
}
})
.then((response) => response.json())
.then((data) => {
const beaconscript = document.querySelector('[data-name="wpr-lcp-beacon"]');
beaconscript.setAttribute('beacon-completed', 'true');
console.log(data);
})
.then((response) => response.json())
.then((data) => {
console.log(data);
})
.catch((error) => {
console.error(error);
});
.catch((error) => {
console.error(error);
});
}

if (document.readyState !== 'loading') {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/lcp-beacon.js.min.map

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

Loading

0 comments on commit 91077f9

Please sign in to comment.