Please set `global.handleEvent`.