hgiesel / closet

The Web Framework for Flashcards
https://closetengine.com
GNU General Public License v3.0
65 stars 6 forks source link

Adding additional scripts has been updated → breaks closet functionality #62

Open sk3k-7535 opened 3 years ago

sk3k-7535 commented 3 years ago

The description how to import additional scripts (e.g. selectively activating tags) has changed since creating the video, so there are different ways I tried to import the script into the user code (importing the script or not, calling function on different locations, prioritizing script over/under setup script). When opening anki per terminal first, one could always see the error:

JS info /__closet-0.5.3.js:1 An error occurred while executing Closet: ReferenceError: closet is not defined

Even if setup was called first and the script-function only called at the bottom, the card does not have any closet-functionalities at all.

Unfortunately, my JS-skills are quite poor, so I could not find the error yet. Maybe Layer-8?