Skip to content

Commit f367a9d

Browse files
committed
Update crossmessaging
1 parent c1f5c73 commit f367a9d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"webpack": "^1.12.2"
5454
},
5555
"dependencies": {
56-
"crossmessaging": "^0.1.2",
56+
"crossmessaging": "^0.2.0",
5757
"jsan": "^2.0.4",
5858
"react": "^0.14.6",
5959
"react-dom": "^0.14.6",

src/browser/extension/background/messaging.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ function messaging(request, sender, sendResponse) {
9595
}
9696

9797
onMessage(messaging);
98-
chrome.runtime.onMessageExternal.addListener(messaging);
9998

10099
chrome.notifications.onClicked.addListener(id => {
101100
chrome.notifications.clear(id);

src/browser/extension/options/syncOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const save = (key, value) => {
66
obj[key] = value;
77
chrome.storage.sync.set(obj);
88
options[key] = value;
9-
sendToTab(window.store.id, { options: options });
9+
if (window.store.id) sendToTab(window.store.id, { options: options });
1010
};
1111

1212
const get = callback => {

0 commit comments

Comments
 (0)