Fix for Anki version 24.04+

This commit is contained in:
gugutu 2024-03-01 16:30:31 +08:00 committed by GitHub
parent d6034c6dcf
commit 6acf2d5bb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ class EditorPreview(object):
"js/vendor/mathjax/tex-chtml-full.js", "js/vendor/mathjax/tex-chtml-full.js",
"js/reviewer.js", "js/reviewer.js",
] ]
if not int(buildversion[0]) == 23 and int(buildversion[2]) < 45: # < 2.1.45 elif int(buildversion[0]) < 23 and int(buildversion[2]) < 45: # < 2.1.45
self.js = [ self.js = [
"js/vendor/jquery.min.js", "js/vendor/jquery.min.js",
"js/vendor/css_browser_selector.min.js", "js/vendor/css_browser_selector.min.js",