This should have been an `else if (global.addEventListener) {`