From d789ffa442b5fb6984cb2716f8cfa01d06bcac21 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Thu, 25 Dec 2014 14:53:30 +0100 Subject: [PATCH] Popup related changes --- platform/chromium/vapi-common.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/platform/chromium/vapi-common.js b/platform/chromium/vapi-common.js index 7797452..9fcffc8 100644 --- a/platform/chromium/vapi-common.js +++ b/platform/chromium/vapi-common.js @@ -73,18 +73,22 @@ vAPI.download = function(details) { /******************************************************************************/ -vAPI.getURL = function(path) { - return chrome.runtime.getURL(path); -}; +vAPI.getURL = chrome.runtime.getURL; -vAPI.i18n = function(s) { - return chrome.i18n.getMessage(s); -}; +/******************************************************************************/ + +vAPI.i18n = chrome.i18n.getMessage; setScriptDirection(vAPI.i18n('@@ui_locale')); /******************************************************************************/ +vAPI.closePopup = function() { + window.open('','_self').close(); +}; + +/******************************************************************************/ + })(); /******************************************************************************/