electron-event-flux
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -14,2 +14,3 @@ import StoreBase from 'event-flux/lib/StoreBase'; | ||
closeWinByWinId(winId: any): void; | ||
sendWinMsg(winId: string, message: any): void; | ||
genClientId(): any; | ||
@@ -16,0 +17,0 @@ closeAllWindows(): void; |
@@ -105,2 +105,5 @@ "use strict"; | ||
}; | ||
MultiWinStore.prototype.sendWinMsg = function (winId, message) { | ||
this._appStore.mainClient.sendMessageByClientId(winId, message); | ||
}; | ||
MultiWinStore.prototype.genClientId = function () { | ||
@@ -107,0 +110,0 @@ var clientId = 'win' + Math.floor(Math.random() * 10000); |
{ | ||
"name": "electron-event-flux", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Redux store which synchronizes between instances in multiple process", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -87,2 +87,6 @@ import StoreBase from 'event-flux/lib/StoreBase'; | ||
sendWinMsg(winId: string, message: any) { | ||
this._appStore.mainClient.sendMessageByClientId(winId, message); | ||
} | ||
genClientId() { | ||
@@ -89,0 +93,0 @@ let clientId = 'win' + Math.floor(Math.random() * 10000); |
308957
7631