diff options
| author | ilya | 2010-04-10 19:27:24 -0700 | 
|---|---|---|
| committer | ilya | 2010-04-10 19:27:24 -0700 | 
| commit | d53e4b072d763aaca83d9bd7696c072dd4341754 (patch) | |
| tree | 5bea967a13febca2952099a1fa935fa1507f999d /vimiumFrontend.js | |
| parent | bdd0690bd478828a2d049c8177b2290b376f22ee (diff) | |
| download | vimium-d53e4b072d763aaca83d9bd7696c072dd4341754.tar.bz2 | |
Apply saving of scroll positions to all tabs, no matter how they are closed.
Diffstat (limited to 'vimiumFrontend.js')
| -rw-r--r-- | vimiumFrontend.js | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js index 5ec38ccb..8a9d91ee 100644 --- a/vimiumFrontend.js +++ b/vimiumFrontend.js @@ -676,3 +676,7 @@ if (!isIframe) {    initializePreDomReady();    window.addEventListener("DOMContentLoaded", initializeOnDomReady);  } + +window.onbeforeunload = function() { +  chrome.extension.sendRequest({ handler: 'updateScrollPosition', scrollX: window.scrollX, scrollY: window.scrollY }); +}  | 
