mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-217
Added a warning dialog Updated to read method to read only from global config
This commit is contained in:
committed by
Kiran Niranjan
parent
d7f62a38b0
commit
919882a5b3
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const { getConfigField } = require('./../config.js');
|
||||
const { getGlobalConfigField } = require('./../config.js');
|
||||
const parseDomain = require('parse-domain');
|
||||
const isEqual = require('lodash.isequal');
|
||||
|
||||
@@ -12,7 +12,7 @@ const isEqual = require('lodash.isequal');
|
||||
function isWhiteList(url) {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
getConfigField('whiteListURL').then((whiteList) => {
|
||||
getGlobalConfigField('whiteListURL').then((whiteList) => {
|
||||
|
||||
if (checkWhiteList(url, whiteList)) {
|
||||
return resolve();
|
||||
|
||||
Reference in New Issue
Block a user