Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: globalThis.AnkiDroidJS is undefined #16357

Closed
5 tasks done
abdnh opened this issue May 5, 2024 · 4 comments
Closed
5 tasks done

[BUG]: globalThis.AnkiDroidJS is undefined #16357

abdnh opened this issue May 5, 2024 · 4 comments

Comments

@abdnh
Copy link
Contributor

abdnh commented May 5, 2024

Checked for duplicates?

  • This issue is not a duplicate

Does it also happen in the desktop version?

  • This bug does not occur in the latest version of Anki

What are the steps to reproduce this bug?

Accessing the AnkiDroidJS object through globalThis no longer works, apparently after #14564.

Expected behaviour

globalThis.AnkiDroidJS should be equivalent to AnkiDroidJS.

Actual behaviour

globalThis.AnkiDroidJS and window.AnkiDroidJS are undefined, while AnkiDroidJS works as expected.

Debug info

AnkiDroid Version = 2.18beta2-debug (bc58dceaad164f3cfeb9a16729dcb890f5ab5fa2)

Backend Version = 0.1.38-anki24.04.1 (24.04.1 ccd9ca1a8309b80bcb50ddc5d99c7ce63440bce9)

Android Version = 14 (SDK 34)

ProductFlavor = amazon

Manufacturer = Google

Model = sdk_gphone64_x86_64

Hardware = ranchu

Webview User Agent = Mozilla/5.0 (Linux; Android 14; sdk_gphone64_x86_64 Build/UE1A.230829.030; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/113.0.5672.136 Mobile Safari/537.36

ACRA UUID = 700f99a6-74f2-4112-927f-578cd2cdb1ee

FSRS Enabled = false

Crash Reports Enabled = false

(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

  • I am reporting a bug specific to AnkiDroid (Android app)
  • I have checked the manual and the FAQ and could not find a solution to my issue
  • (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
@david-allison
Copy link
Member

@BrayanDSO FYI

@BrayanDSO
Copy link
Member

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?

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Nov 5, 2024

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

@github-actions github-actions bot added the Stale label Nov 5, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants