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