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
285 stars 110 forks source link

fix dialogs on iitc boot #716

Closed McBen closed 6 months ago

McBen commented 6 months ago

DIALOGS is not initialized when "checkingIntelURL" or "extractFromStock" function fails and tries to open a dialog.

example: error"can't access property "dialog-anon-0", window.DIALOGS is undefined" when not using "intel.ingress.com"

github-actions[bot] commented 6 months ago

🤖 Pull request artifacts

file commit
IITC_Mobile-test.apk eb8b7bcc8e48fb9fe500e29f2c8c2b216aa294ae
test-0.38.0.20240312.074610.zip eb8b7bcc8e48fb9fe500e29f2c8c2b216aa294ae

See build on website

McBen commented 6 months ago

to reproduce the problem: change the intel.ingress.com in boot.js:98 if (window.location.hostname !== 'intel.ingress.com' && localStorage['pass-checking-intel-url'] !== 'true') { to trigger the warning