From 747f6f995599e0e329e47e064eabe6e637c6753c Mon Sep 17 00:00:00 2001 From: Deathamns Date: Tue, 16 Dec 2014 13:44:34 +0100 Subject: [PATCH] Firefox: implement toolbar button and popup --- platform/firefox/vapi-client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/firefox/vapi-client.js b/platform/firefox/vapi-client.js index 7219179..0ecb655 100644 --- a/platform/firefox/vapi-client.js +++ b/platform/firefox/vapi-client.js @@ -19,6 +19,8 @@ Home: https://github.com/gorhill/uBlock */ +/* global addMessageListener, removeMessageListener, sendAsyncMessage */ + // For non background pages /******************************************************************************/ @@ -74,7 +76,7 @@ var messagingConnector = function(response) { /******************************************************************************/ var uniqueId = function() { - return parseInt(Math.random() * 1e10, 10).toString(36); + return Math.random().toString(36).slice(2); }; /******************************************************************************/