diff --git a/src/conf/config.js b/src/conf/config.js index 52c3b32d..b1298467 100644 --- a/src/conf/config.js +++ b/src/conf/config.js @@ -7,7 +7,7 @@ export let CONFIG = { LOG_LEVEL: 'info', - ACK_TIMEOUT: 500, + ACK_TIMEOUT: 1000, LOG_TO_PAGE: false, diff --git a/src/drivers/receive/index.js b/src/drivers/receive/index.js index 84137669..080c0e27 100644 --- a/src/drivers/receive/index.js +++ b/src/drivers/receive/index.js @@ -77,7 +77,9 @@ function getTargetWindow(source, message) { export function receiveMessage(event) { try { - event.source // eslint-disable-line + if (!event.source) { + return; + } } catch (err) { return; }