From 42db160b93f3a1b812f94bad8d59f027dac75549 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 24 Jan 2015 12:34:36 -0500 Subject: forgot about reload: always rebind --- src/js/tab.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/js/tab.js b/src/js/tab.js index f0e6cde..ad167b5 100644 --- a/src/js/tab.js +++ b/src/js/tab.js @@ -171,10 +171,10 @@ vAPI.tabs.registerListeners(); return pageStore; } - // Rebind according to context - if ( pageURL !== pageStore.pageURL ) { - pageStore.reuse(pageURL, context); - } + // Rebind according to context. We rebind even if the URL did not change, + // as maybe the tab was force-reloaded, in which case the page stats must + // be all reset. + pageStore.reuse(pageURL, context); return pageStore; }; -- cgit v1.1