Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
First quick check if lastEmittedState and appState are different
Browse files Browse the repository at this point in the history
Resolves #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 bee20ef commit 69ec750
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 @@ -270,7 +270,7 @@ class AppStore extends EventEmitter {
}

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

0 comments on commit 69ec750

Please sign in to comment.