From 2b249b3aff41ef310bbba5f6e1bcb772bb9f11c6 Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Wed, 11 Jan 2017 12:04:18 +0200 Subject: [PATCH] Include optional arguments for legacy support Related to https://github.com/ngrx/store-devtools/issues/47 and #273. --- src/app/api/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/api/index.js b/src/app/api/index.js index 28043780..31126ac3 100644 --- a/src/app/api/index.js +++ b/src/app/api/index.js @@ -69,13 +69,13 @@ export function toContentScript(message, serializeState, serializeAction) { post(message); } -export function sendMessage(action, state, config) { +export function sendMessage(action, state, config, instanceId, name) { if (typeof config !== 'object') config = {}; // eslint-disable-line no-param-reassign const message = { payload: state, source, - name: config.name, - instanceId: config.instanceId || 1 + name: config.name || name, + instanceId: config.instanceId || instanceId || 1 }; if (action) { message.type = 'ACTION';