Open abdnh opened 1 week ago
@BrayanDSO FYI
This has been around since at least alpha15 and I can't think of anything specific that I have done that could result in that.
I can't find the documentation specifying that this should be intended or not. @krmanik has any thoughts?
Checked for duplicates?
Does it also happen in the desktop version?
What are the steps to reproduce this bug?
Accessing the
AnkiDroidJS
object throughglobalThis
no longer works, apparently after https://github.com/ankidroid/Anki-Android/pull/14564.Expected behaviour
globalThis.AnkiDroidJS
should be equivalent toAnkiDroidJS
.Actual behaviour
globalThis.AnkiDroidJS
andwindow.AnkiDroidJS
areundefined
, whileAnkiDroidJS
works as expected.Debug info
(Optional) Anything else you want to share?
This behavior is unintuitive and is breaking some functionality in popular note types, e.g. https://forums.ankiweb.net/t/anki-as-a-knowledge-base-with-a-massive-cloze-note/11658/92
Research