aboutsummaryrefslogtreecommitdiffstats
path: root/vimiumFrontend.js
diff options
context:
space:
mode:
authorPhil Crosby2009-11-08 00:03:22 -0800
committerPhil Crosby2009-11-08 00:03:22 -0800
commit615a5d9ce23560901786343f1d639576fec7f647 (patch)
tree7f3409087c50618634919b713b032b1b6d393de8 /vimiumFrontend.js
parent5e472a0ace4515936bce4b7330be391f0dfb10cb (diff)
downloadvimium-615a5d9ce23560901786343f1d639576fec7f647.tar.bz2
Make the style consistent in a few places.
Diffstat (limited to 'vimiumFrontend.js')
-rw-r--r--vimiumFrontend.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index 9301ee28..bf6d54f0 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -21,8 +21,7 @@ function goBack() { history.back(); }
function goForward() { history.forward(); }
chrome.extension.onConnect.addListener(function (port, name) {
- if (port.name == "executePageCommand")
- {
+ if (port.name == "executePageCommand") {
port.onMessage.addListener(function (args) {
if (this[args.command])
{
@@ -30,8 +29,7 @@ chrome.extension.onConnect.addListener(function (port, name) {
}
});
}
- else if (port.name == "getScrollPosition")
- {
+ else if (port.name == "getScrollPosition") {
port.onMessage.addListener(function (args) {
var scrollPort = chrome.extension.connect({ name: "returnScrollPosition" });
scrollPort.postMessage({
@@ -40,9 +38,7 @@ chrome.extension.onConnect.addListener(function (port, name) {
currentTab: args.currentTab
});
});
- }
- else if (port.name == "setScrollPosition")
- {
+ } else if (port.name == "setScrollPosition") {
port.onMessage.addListener(function (args) {
if (args.scrollX > 0 || args.scrollY > 0) { window.scrollBy(args.scrollX, args.scrollY); }
});