Coder Social home page Coder Social logo

[BUG]: After upgrading to 2.18.0, my custom JavaScript is not working, but it works on AnkiMobile (iOS) and Anki on Windows 11 about anki-android HOT 5 CLOSED

inherithandle avatar inherithandle commented on September 22, 2024
[BUG]: After upgrading to 2.18.0, my custom JavaScript is not working, but it works on AnkiMobile (iOS) and Anki on Windows 11

from anki-android.

Comments (5)

welcome avatar welcome commented on September 22, 2024

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

from anki-android.

BrayanDSO avatar BrayanDSO commented on September 22, 2024

Hello there. Could you send a zipped .apkg file with a card and the corresponding js file affected by it

from anki-android.

inherithandle avatar inherithandle commented on September 22, 2024

here is apkg file and js file. please refer to the card that says "In middle school, 74% of the girls express science, technology as part of their interests," on the back.

apkg:
https://drive.google.com/file/d/1Y2MokGoR6WdOxX0l6LyyaOm2ZMM-1_4v/view?usp=drive_link

wavesurfer.js
https://drive.google.com/file/d/1-AL8oBPURpO3Eybs5vKz6ImxVB9X9U-1/view?usp=drive_link

from anki-android.

BrayanDSO avatar BrayanDSO commented on September 22, 2024

2.17 used a different way to load files, but after noticing that it was considerably slower, we reverted back to the approach of 2.16.

That approach isn't compatible with Javascript's fetch API, and it's either that or loading media several times slower. It can be easily replaced with XMLHttpRequest, so that's what I suggest

Here's a modified version of your js file.

js.zip

If it doesn't work, ask for help on Discord or the forums

from anki-android.

inherithandle avatar inherithandle commented on September 22, 2024

@BrayanDSO
your javascript file does not work for both ankimobile (ios) and anki on ubuntu linux. are you sure about this? can you please check it again?

from anki-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.