From 1e760f94299678c39b0e13ae2c98be0f6e573d16 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 16 Sep 2017 07:59:56 -0400 Subject: [PATCH] fix #3024: regression from 5626b500 --- src/js/contextmenu.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/js/contextmenu.js b/src/js/contextmenu.js index 54d939dee..166303859 100644 --- a/src/js/contextmenu.js +++ b/src/js/contextmenu.js @@ -69,14 +69,10 @@ var onBlockElement = function(details, tab) { /******************************************************************************/ var onTemporarilyAllowLargeMediaElements = function(details, tab) { - if ( tab === undefined ) { - return; - } + if ( tab === undefined ) { return; } var pageStore = µb.pageStoreFromTabId(tab.id); - if ( pageStore === null ) { - return; - } - pageStore.temporarilyAllowLargeMediaElements(); + if ( pageStore === null ) { return; } + pageStore.temporarilyAllowLargeMediaElements(true); }; /******************************************************************************/