Skip to content

Commit

Permalink
Replace polyfill.io by cloudflare cdn
Browse files Browse the repository at this point in the history
Since polyfill.io is down, replace it with cloudflare cdn
https://news.ycombinator.com/item?id=40805827

"Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China."
  • Loading branch information
kitro authored Jun 27, 2024
1 parent 681dcf9 commit 457fd37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<link rel="icon" type="image/svg+xml" href="/favicon.svg">

{{-- Inertia --}}
<script src="https://polyfill.io/v3/polyfill.min.js?features=smoothscroll,NodeList.prototype.forEach,Promise,Object.values,Object.assign" defer></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=smoothscroll,NodeList.prototype.forEach,Promise,Object.values,Object.assign" defer></script>

{{-- Ping CRM --}}
<script src="https://polyfill.io/v3/polyfill.min.js?features=String.prototype.startsWith" defer></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=String.prototype.startsWith" defer></script>

@vite('resources/js/app.js')
@inertiaHead
Expand Down

0 comments on commit 457fd37

Please sign in to comment.