@yuneta/gobj-js 7.6.5 → 7.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -802,7 +802,7 @@ var gobjJs = function(e) {
802
802
  return n ? (e.last_state = e.current_state, e.current_state = n, !0) : (Ot(`${Ne(e)}: state unknown, state ${t}`), !1);
803
803
  }
804
804
  function tt(e) {
805
- return $e(e) ? (Ot("gobj NULL or DESTROYED"), null) : e.current_state.state_name;
805
+ return Xt(e) ? e.current_state.state_name : (Ot("hgobj NULL"), "");
806
806
  }
807
807
  function nt(e, t, n) {
808
808
  if (!Xt(e)) return Ot("gobj NULL of bad type"), null;
@@ -1812,10 +1812,10 @@ var gobjJs = function(e) {
1812
1812
  data: n.data
1813
1813
  }, e);
1814
1814
  }, n.onclose = (n) => {
1815
- Be(Te(), "browser_beforeunload") ? Nt("Close websocket by unload page") : lt(e, "EV_ON_CLOSE", {
1815
+ $e(e) || (Be(Te(), "browser_beforeunload") ? Nt("Close websocket by unload page") : lt(e, "EV_ON_CLOSE", {
1816
1816
  url: t,
1817
1817
  e: n
1818
- }, e);
1818
+ }, e));
1819
1819
  }, n) : (Ot(`${Ne(e)}: Failed to initialize WebSocket.`), null);
1820
1820
  }
1821
1821
  function gr(e, t = 1e3, n = "") {