From 82de8148d227f2809fee72fbd3b1aee5131a77e9 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 8 Jul 2015 17:40:42 -0700 Subject: [PATCH] Reload harder Refreshing the background page does re-open the socket, but the inbox and other windows don't reattach correctly. Reload the whole runtime to force close all windows, reload the background, and re open the inbox. --- js/views/inbox_view.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 1b12a897..2b6fbee2 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -52,9 +52,7 @@ 'click': 'reloadBackgroundPage' }, reloadBackgroundPage: function() { - extension.windows.getBackground(function(bg) { - bg.location.reload(); - }); + chrome.runtime.reload(); } });