DevEjectionSeat.razor.js 191 B

123456
  1. export function SetBeforeUnloadEventHandler(esInstance,metohdName) {
  2. window.addEventListener("beforeunload", function () {
  3. esInstance.invokeMethodAsync(metohdName);
  4. });
  5. }