From dc08478130ba9e396180e2f29e8d789ac5d4252a Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 31 Jul 2021 07:15:19 -0400 Subject: [PATCH] Fix https://github.com/uBlockOrigin/uBlock-issues/issues/1675 --- src/js/scriptlets/epicker.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/scriptlets/epicker.js b/src/js/scriptlets/epicker.js index 16565d085..e455bb546 100644 --- a/src/js/scriptlets/epicker.js +++ b/src/js/scriptlets/epicker.js @@ -30,6 +30,12 @@ /******************************************************************************/ +if ( typeof vAPI !== 'object' || vAPI === null ) { + return; +} + +/******************************************************************************/ + const epickerId = vAPI.randomToken(); let epickerConnectionId;