From 731db6ab2d9d0bb1cf9d2d3b0bb54d3d09455666 Mon Sep 17 00:00:00 2001 From: Mark Collins Date: Tue, 27 Feb 2018 14:05:47 +0100 Subject: [PATCH] Check that oldWindowLoad is a function in src/context.js Prevent warning in Firefox console: "TypeError: oldWindowLoad is not a function" --- src/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.js b/src/context.js index d6c52f70..58b9455c 100644 --- a/src/context.js +++ b/src/context.js @@ -291,7 +291,7 @@ } window.onload = function() { - if (oldWindowLoad) { + if (typeof oldWindowLoad === 'function') { oldWindowLoad() } Context.refreshAll()