Skip to content

Commit

Permalink
Don't import jQuery on Anki 2.1
Browse files Browse the repository at this point in the history
2.1 already ships with its own jQuery build, so there's no need
to import our own.

Fixes an issue where the add-on would only work after restarting
Anki 2.1 at least once. Perhaps because of caching jQuery?
  • Loading branch information
glutanimate committed Aug 19, 2018
1 parent 7fb2a16 commit b308564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popup_dictionary/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,5 @@
<script>{}</script>
<script>{}</script>
<script>{}</script>
""".format(qtip_css, tooltip_css, jquery_js,
""".format(qtip_css, tooltip_css, jquery_js if not anki21 else "",
qtip_js, highlight_js, tooltip_script_js)

0 comments on commit b308564

Please sign in to comment.