IITC-CE / ingress-intel-total-conversion

intel.ingress.com total conversion user script with some new features. Should allow easier extension of the intel map.
https://iitc.app
ISC License
279 stars 105 forks source link

Proxy for chat and COMM API #711

Closed modos189 closed 1 month ago

modos189 commented 4 months ago

On top of https://github.com/IITC-CE/ingress-intel-total-conversion/pull/447

Problem: legacy plugins overwrite window.chat functions, but the new code uses the COMM API and these plugin changes are not called. Also, before this PR, a lot of window.chat functions were removed, which could cause errors in the legacy plugins.

Solution: I created a proxy that calls the alternatives in the COMM API when calling the removed window.chat functions. It also overwrites COMM API methods when they are overwritten in window.chat by a legacy plugin.

I tested this solution with plugins from Commutity plugins and it looks like a working solution.

github-actions[bot] commented 4 months ago

🤖 Pull request artifacts

file commit
IITC_Mobile-test.apk 7fe94663b551636a4a48a1e4288986ac8e9b1072
test-0.38.1.20240515.104515.zip 7fe94663b551636a4a48a1e4288986ac8e9b1072

See build on website