1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

minor code review

This commit is contained in:
gorhill 2016-08-12 11:31:13 -04:00
parent 315dadb466
commit 839fed43ae

View File

@ -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;