From 3dc8e88c75e7c668ed439e059eb1eb3850bc31a9 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Thu, 25 Dec 2014 14:53:30 +0100 Subject: [PATCH] Popup related changes --- platform/firefox/vapi-common.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/firefox/vapi-common.js b/platform/firefox/vapi-common.js index cbe6dc7..949b7e9 100644 --- a/platform/firefox/vapi-common.js +++ b/platform/firefox/vapi-common.js @@ -19,6 +19,8 @@ Home: https://github.com/gorhill/uBlock */ +/* global sendAsyncMessage */ + // For background page or non-background pages /******************************************************************************/ @@ -92,6 +94,12 @@ setScriptDirection(navigator.language); /******************************************************************************/ +vAPI.closePopup = function() { + sendAsyncMessage(location.host + ':closePopup'); +}; + +/******************************************************************************/ + })(); /******************************************************************************/