Skip to content

Commit

Permalink
First quick check if lastEmittedState and appState are different
Browse files Browse the repository at this point in the history
Resolves brave#10195

Auditors: @bridiver @bbondy

Test Plan:
- open two windows
- add bookmark in one
- bookmark should appear in both bookmark toolbars
  • Loading branch information
NejcZdovc committed Aug 15, 2017
1 parent 86923ed commit a179743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/stores/appStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class AppStore extends EventEmitter {
}

emitChanges () {
if (this.lastEmittedState) {
if (this.lastEmittedState && this.lastEmittedState !== appState) {
const d = diff(this.lastEmittedState, appState)
if (!d.isEmpty()) {
BrowserWindow.getAllWindows().forEach((wnd) => {
Expand Down

0 comments on commit a179743

Please sign in to comment.