Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: changes for cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuran-deriv committed Nov 22, 2023
1 parent 6a2605d commit 031e721
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const onClientEntry = () => {
})

addScript({
src: 'https://static.deriv.com/scripts/cookie.js',
src: 'https://static.deriv.com/scripts/cookie-test.js',
async: true,
strategy: 'off-main-thread',
})
Expand Down
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = {
partytownProxiedURLs: [
`https://assets.customer.io/assets/track-eu.js`,
`https://assets.customer.io/assets/track.js`,
`https://static.deriv.com/scripts/cookie.js`,
`https://static.deriv.com/scripts/cookie-test.js`,
`https://widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js`,
],
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion src/common/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export const redirectToTradingPlatform = () =>

// Function to manually add external js files.
type TSettings = {
src?: 'https://static.deriv.com/scripts/cookie.js'
src?: 'https://static.deriv.com/scripts/cookie-test.js'
text?: string
async: boolean
strategy?: 'off-main-thread'
Expand Down

0 comments on commit 031e721

Please sign in to comment.