fix #3024: regression from 5626b500

This commit is contained in:
gorhill 2017-09-16 07:59:56 -04:00
parent 2c4faaa84d
commit 1e760f9429
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

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