mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 12:32:27 +01:00
Adding some checks to check if win is defined
This commit is contained in:
@@ -105,7 +105,7 @@ liberator.Buffer = function () //{{{
|
||||
function findScrollableWindow()
|
||||
{
|
||||
var win = window.document.commandDispatcher.focusedWindow;
|
||||
if (win.scrollMaxX > 0 || win.scrollMaxY > 0)
|
||||
if (win && (win.scrollMaxX > 0 || win.scrollMaxY > 0))
|
||||
return win;
|
||||
|
||||
win = window.content;
|
||||
|
||||
Reference in New Issue
Block a user