From 709ee9e5a77e2f15a2c001873ab1e1d5476bd0ae Mon Sep 17 00:00:00 2001 From: Oskar Hane Date: Tue, 16 May 2017 15:36:53 +0200 Subject: [PATCH] Adapt to new response format from `getServerConfig` --- src/shared/services/commandInterpreterHelper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/services/commandInterpreterHelper.js b/src/shared/services/commandInterpreterHelper.js index f30d87f93aa..7a12d8601eb 100644 --- a/src/shared/services/commandInterpreterHelper.js +++ b/src/shared/services/commandInterpreterHelper.js @@ -121,8 +121,8 @@ const availableCommands = [{ const url = action.cmd.substr(cmdchar.length + 'play '.length) getServerConfig(['browser.']).then((conf) => { - const getWhiteList = conf && conf['browser.remote_content_hostname_whitelist'] - const whitelist = (getWhiteList) ? getWhiteList.value : null + const serverWhitelist = conf && conf['browser.remote_content_hostname_whitelist'] + const whitelist = serverWhitelist || null if (!hostIsAllowed(url, whitelist)) { throw new Error('Hostname is not allowed according to server whitelist')