Fix the `CustomEvent` compatibility problem

Some Android smart phone's browser do not support `new CustomEvent()`