mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Add mapping in redirectWebExport for new jquery file
This commit is contained in:
parent
98407c3fea
commit
202fd6ffa5
1 changed files with 11 additions and 4 deletions
|
@ -190,10 +190,17 @@ def _redirectWebExports(path):
|
|||
else:
|
||||
addprefix = "js/"
|
||||
|
||||
if addprefix:
|
||||
oldpath = path
|
||||
path = f"{targetPath}{addprefix}{filename}"
|
||||
print(f"legacy {oldpath} remapped to {path}")
|
||||
elif dirname == "_anki/js/vendor":
|
||||
base, ext = os.path.splitext(filename)
|
||||
|
||||
if base == "jquery":
|
||||
base = "jquery.min"
|
||||
addprefix = "js/vendor/"
|
||||
|
||||
if addprefix:
|
||||
oldpath = path
|
||||
path = f"{targetPath}{addprefix}{base}{ext}"
|
||||
print(f"legacy {oldpath} remapped to {path}")
|
||||
|
||||
return _exportFolder, path[len(targetPath) :]
|
||||
|
||||
|
|
Loading…
Reference in a new issue