From dde2dd848d67de339c391aa6f4a52809fdffafeb Mon Sep 17 00:00:00 2001 From: Kerrick Long Date: Thu, 16 Jun 2011 23:56:44 -0500 Subject: [PATCH] Duh, wrong spot. --- popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popup.js b/popup.js index 72dedce..b6bc7c6 100644 --- a/popup.js +++ b/popup.js @@ -140,9 +140,9 @@ function buildPage(pageUrl) { } function apiCall(call, postId) { + var formData = new FormData(); + var apiUrl = new String(); switch(call) { - var formData = new FormData(); - var apiUrl = new String(); case 'upmod': apiUrl = 'http://www.reddit.com/api/vote'; formData.append('id',postId);