fix: close all active windows on connection lost
This commit is contained in:
parent
8ebb95fb8f
commit
82e3760818
|
@ -76,6 +76,7 @@ export const App: FC<{}> = props => {
|
|||
setMessage("Connection Error");
|
||||
return;
|
||||
case NitroCommunicationDemoEvent.CONNECTION_CLOSED:
|
||||
GetNitroInstance().createLinkEvent("*/hide");
|
||||
if (GetNitroInstance().roomEngine) GetNitroInstance().roomEngine.dispose();
|
||||
|
||||
HabboWebTools.send(-1, "client.init.handshake.fail");
|
||||
|
|
|
@ -246,7 +246,7 @@ export class Nitro implements INitro {
|
|||
const prefix = tracker.eventUrlPrefix;
|
||||
|
||||
if (prefix.length > 0) {
|
||||
if (link.substr(0, prefix.length) === prefix) tracker.linkReceived(link);
|
||||
if (link.substring(0, 1) === "*" || link.substring(0, prefix.length) === prefix) tracker.linkReceived(link);
|
||||
} else {
|
||||
tracker.linkReceived(link);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue