Electron-217

Added a warning dialog
Updated to read method to read only from global config
This commit is contained in:
Kiran Niranjan
2017-12-21 12:53:57 +05:30
committed by Kiran Niranjan
parent d7f62a38b0
commit 919882a5b3
3 changed files with 18 additions and 8 deletions

View File

@@ -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();