(event)
| 69 | * @param {CustomEvent<{ currentHash: string }>} event event or hash |
| 70 | */ |
| 71 | var handler = function (event) { |
| 72 | lastHash = typeof event === "string" ? event : event.detail.currentHash; |
| 73 | if (!upToDate() && module.hot.status() === "idle") { |
| 74 | log("info", "[HMR] Checking for updates on the server..."); |
| 75 | check(); |
| 76 | } |
| 77 | }; |
| 78 | |
| 79 | if (typeof EventTarget !== "undefined" && hotEmitter instanceof EventTarget) { |
| 80 | hotEmitter.addEventListener( |