From a34bb4793e1f4969d597c0a59abd2dd187d1e356 Mon Sep 17 00:00:00 2001 From: David Rosenbloom Date: Sun, 13 Feb 2022 12:53:34 -0500 Subject: [PATCH] 133: export variables for re-use. --- src/syncState.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/syncState.js b/src/syncState.js index d84a918..80a18de 100644 --- a/src/syncState.js +++ b/src/syncState.js @@ -1,10 +1,10 @@ import { BroadcastChannel } from 'broadcast-channel'; let lastUuid = 0; -const GET_INIT_STATE = '&_GET_INIT_STATE'; -const SEND_INIT_STATE = '&_SEND_INIT_STATE'; -const RECEIVE_INIT_STATE = '&_RECEIVE_INIT_STATE'; -const INIT_MESSAGE_LISTENER = '&_INIT_MESSAGE_LISTENER'; +export const GET_INIT_STATE = '&_GET_INIT_STATE'; +export const SEND_INIT_STATE = '&_SEND_INIT_STATE'; +export const RECEIVE_INIT_STATE = '&_RECEIVE_INIT_STATE'; +export const INIT_MESSAGE_LISTENER = '&_INIT_MESSAGE_LISTENER'; const defaultConfig = { channel: 'redux_state_sync', @@ -31,7 +31,7 @@ function guid() { } // generate current window unique id -const WINDOW_STATE_SYNC_ID = guid(); +export const WINDOW_STATE_SYNC_ID = guid(); // export for test export function generateUuidForAction(action) { const stampedAction = action;