Closed FrutyX closed 1 year ago
Thanos, isn't this an easy fix? For you, I mean.
Basically if GCA detects that are is no sh=
you could try to redirect it to a valid URL with sh=
, this would work even for everything else, not only the chat (be warned that if you have the chat opened, all pages does not contain an sh=
, but the addon still works).
Another approach would be to catch the "substring" null error and redirect you to a valid URL, however I was unable to catch the error, I am kinda too short for these fixes, but from what I saw, it should be a child's play for Thanos.
Ah! Finally someone capable, I was missing you, Apo 😄
Hm, I was testing it before, but today, when I tried it, GCA again broke and:
overview.js?4.3.8&built=1663957221750:138 Failed to detect player's id.
Idea: Without touching the detection, you could modify the href attribute of the close chat icon by it's class chat_icon_disable
and when it's clicked, it redirects you to a valid URL link with an sh=
.
I was trying it, but in the end, I had some troubles, nothing you wouldn't handle.
Not breaking the addon anymore, thanks to Thanos, closing.
How to reproduce: You open the chat, and you close it, after closing it the addon will get broken, but thankfully, once you refresh the page, GCA will be back again.
Conclusion: The URL after closing the chat is
https://s51-en.gladiatus.gameforge.com/game/index.php?mod=overview
, it does not have ansh=
.