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); }; /******************************************************************************/