diff --git a/js/chromium.js b/js/chromium.js index 5d14dcf73..d8b9befcd 100644 --- a/js/chromium.js +++ b/js/chromium.js @@ -170,7 +170,7 @@ } }; - if (chrome) { + if (chrome.notifications) { chrome.notifications.onClicked.addListener(function() { chrome.notifications.clear('signal'); Whisper.Notifications.onclick(); diff --git a/test/index.html b/test/index.html index 52827f5c1..e2a1bd07e 100644 --- a/test/index.html +++ b/test/index.html @@ -110,6 +110,7 @@ + diff --git a/test/views/message_view_test.js b/test/views/message_view_test.js index 00f348560..40db1f658 100644 --- a/test/views/message_view_test.js +++ b/test/views/message_view_test.js @@ -9,6 +9,7 @@ describe('MessageView', function() { conversationId: convo.id, body: 'hello world', type: 'outgoing', + source: '+14158675309', received_at: new Date().getTime() });