Skip to content

Commit

Permalink
Merge pull request #147 from postmanlabs/polyfil-update
Browse files Browse the repository at this point in the history
update polyfill to use Cloudflare one for Security Team
  • Loading branch information
tristandenyer authored Jul 1, 2024
2 parents 28553e5 + 9194f11 commit b492d6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/seo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="1cef3369-6d07-4928-b977-2d877eb670c4" />
<link rel="canonical" href={`https://learning.postman.com${site.siteMetadata.pathPrefix}${slug}`} />
{/* Algolia Instantsearch IE11 support v3 */}
{/* <script src="https://polyfill.io/v3/polyfill.min.js?features=default,Array.prototype.find,Array.prototype.includes" /> */}
{/* <script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=default,Array.prototype.find,Array.prototype.includes" /> */}
{/* */}
{/* Algolia Instantsearch IE11 support v4 */}
<link rel="dns-prefetch" href="https://polyfill.io" />
<link crossOrigin rel="preconnect" href="https://polyfill.io" />
<script async src="https://polyfill.io/v3/polyfill.min.js?features=default%2CArray.prototype.find%2CArray.prototype.includes%2CPromise%2CObject.assign%2CObject.entries"></script>
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com" />
<link crossOrigin rel="preconnect" href="https://cdnjs.cloudflare.com" />
<script async src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=default%2CArray.prototype.find%2CArray.prototype.includes%2CPromise%2CObject.assign%2CObject.entries"></script>
</Helmet>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class IndexPage extends React.Component {
polyfill.id = id
polyfill.language = "JavaScript1.1"
polyfill.src =
"//polyfill.io/v3/polyfill.min.js?features=default%2CArray.prototype.find%2CArray.prototype.includes%2CPromise%2CObject.assign%2CObject.entries"
"//cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=default%2CArray.prototype.find%2CArray.prototype.includes%2CPromise%2CObject.assign%2CObject.entries"
polyfill.async = true
document.body.appendChild(polyfill)
}
Expand Down

0 comments on commit b492d6b

Please sign in to comment.