diff options
| author | Phil Crosby | 2011-02-09 23:05:40 -0800 |
|---|---|---|
| committer | Phil Crosby | 2011-02-09 23:05:40 -0800 |
| commit | 1edb16a47eb8a35fc3ea7991bfdfc8434d1d3bff (patch) | |
| tree | 3d0275940d6b35a6b9da4accf12e013901c713e4 /vimiumFrontend.js | |
| parent | 7d5f9b138f77db9a62f2d2847fd182372afdd9b3 (diff) | |
| download | vimium-1edb16a47eb8a35fc3ea7991bfdfc8434d1d3bff.tar.bz2 | |
Style
Diffstat (limited to 'vimiumFrontend.js')
| -rw-r--r-- | vimiumFrontend.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js index 6ddc15c3..b7f9308f 100644 --- a/vimiumFrontend.js +++ b/vimiumFrontend.js @@ -153,8 +153,8 @@ function initializeWhenEnabled() { /* * The backend needs to know which frame has focus. */ -window.addEventListener("focus", function(e){ - chrome.extension.sendRequest({handler: "frameFocused", frameId: frameId}); +window.addEventListener("focus", function(e) { + chrome.extension.sendRequest({ handler: "frameFocused", frameId: frameId }); }); /* @@ -185,7 +185,8 @@ function initializeOnDomReady() { // This is a little hacky but sometimes the size wasn't available on domReady? function registerFrameIfSizeAvailable (top) { if (innerWidth != undefined && innerWidth != 0 && innerHeight != undefined && innerHeight != 0) - chrome.extension.sendRequest({ handler: "registerFrame", frameId: frameId, area: innerWidth * innerHeight, top: top, total: frames.length + 1 }); + chrome.extension.sendRequest({ handler: "registerFrame", frameId: frameId, + area: innerWidth * innerHeight, top: top, total: frames.length + 1 }); else setTimeout(function () { registerFrameIfSizeAvailable(top); }, 100); } |
