From 839fed43aeb898037f86e8eb1dd43c0f00801fee Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 12 Aug 2016 11:31:13 -0400 Subject: [PATCH] minor code review --- src/js/contentscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/contentscript.js b/src/js/contentscript.js index bcc16345d..4fa8a34a4 100644 --- a/src/js/contentscript.js +++ b/src/js/contentscript.js @@ -1502,7 +1502,7 @@ vAPI.domSurveyor = (function() { /******************************************************************************/ vAPI.domIsLoaded = function(ev) { - if ( ev ) { + if ( ev instanceof Event ) { document.removeEventListener('DOMContentLoaded', vAPI.domIsLoaded); } vAPI.domIsLoaded = null;