File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/components/shared/utils/config Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- import { LocalStorageConstants , LocalStorageUtils , URLUtils } from '@deriv-com/utils' ;
1
+ import { LocalStorageConstants , URLUtils } from '@deriv-com/utils' ;
2
2
import { isStaging } from '../url/helpers' ;
3
3
4
4
export const APP_IDS = {
@@ -146,8 +146,9 @@ export const generateOAuthURL = () => {
146
146
const { getOauthURL } = URLUtils ;
147
147
const oauth_url = getOauthURL ( ) ;
148
148
const original_url = new URL ( oauth_url ) ;
149
- const configured_server_url = ( LocalStorageUtils . getValue ( LocalStorageConstants . configServerURL ) ||
150
- original_url . hostname ) as string ;
149
+ const configured_server_url = localStorage . getItem (
150
+ LocalStorageConstants . configServerURL || original_url . hostname
151
+ ) as string ;
151
152
152
153
const valid_server_urls = [ 'green.derivws.com' , 'red.derivws.com' , 'blue.derivws.com' ] ;
153
154
if ( ! valid_server_urls . includes ( configured_server_url ) ) {
You can’t perform that action at this time.
0 commit comments