Skip to content

Commit

Permalink
Replace usage of polyfill.io with cdnjs
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Feb 29, 2024
1 parent b019ab6 commit 7b0cdfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class-wp-sentry-js-tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function on_enqueue_scripts(): void {
if ( defined( 'WP_SENTRY_BROWSER_USE_ES5_BUNDLES' ) && WP_SENTRY_BROWSER_USE_ES5_BUNDLES ) {
wp_enqueue_script(
'wp-sentry-polyfill',
'https://polyfill.io/v3/polyfill.min.js?features=Promise%2CObject.assign%2CNumber.isNaN%2CArray.prototype.includes%2CString.prototype.startsWith',
'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise%2CObject.assign%2CNumber.isNaN%2CArray.prototype.includes%2CString.prototype.startsWith',
[],
WP_Sentry_Version::SDK_VERSION
);
Expand Down

0 comments on commit 7b0cdfe

Please sign in to comment.