diff --git a/platform/chromium/vapi-common.js b/platform/chromium/vapi-common.js index cce22b2..81667db 100644 --- a/platform/chromium/vapi-common.js +++ b/platform/chromium/vapi-common.js @@ -21,7 +21,7 @@ // For background page or non-background pages -/* global self, vAPI */ +/* global self */ /******************************************************************************/ @@ -31,6 +31,9 @@ self.vAPI = self.vAPI || {}; +var chrome = self.chrome; +var vAPI = self.vAPI; + /******************************************************************************/ // http://www.w3.org/International/questions/qa-scripts#directions @@ -70,8 +73,6 @@ vAPI.download = function(details) { /******************************************************************************/ -var chrome = self.chrome; - vAPI.getURL = function(path) { return chrome.runtime.getURL(path); };