Skip to content

Commit

Permalink
Merge pull request #649 from balakrishna-deriv/update-chart
Browse files Browse the repository at this point in the history
Bala/Update webtrader-chart to latest version
  • Loading branch information
balakrishna-deriv authored May 31, 2024
2 parents d3b0828 + 2dac91b commit 797c787
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 62 deletions.
5 changes: 5 additions & 0 deletions build/webpack/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ const getPlugins = (app, grunt) => ([
openAnalyzer : false,
}),
]),
new webpack.DefinePlugin({
'process.env': {
BUILD_HASH: JSON.stringify(CryptoJS.MD5(Date.now().toString()).toString()),
},
}),
]
),
]);
Expand Down
110 changes: 50 additions & 60 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@babel/polyfill": "7.12.1",
"@binary-com/binary-document-uploader": "^2.4.4",
"@binary-com/binary-style": "^0.2.26",
"@binary-com/webtrader-charts": "0.5.22",
"@binary-com/webtrader-charts": "^0.6.1",
"@livechat/customer-sdk": "4.0.2",
"canvas-toBlob": "1.0.0",
"classnames": "2.2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const getSocketURL = () => {

const loginid = window.localStorage.getItem('active_loginid');
const is_real = loginid && !/^VRT/.test(loginid);
const server = isProduction() && is_real ? 'green' : 'blue';
const server = isProduction() && is_real ? 'green' : 'red';

server_url = `${server}.derivws.com`;
}
Expand Down

0 comments on commit 797c787

Please sign in to comment.