mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -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:
|
else:
|
||||||
addprefix = "js/"
|
addprefix = "js/"
|
||||||
|
|
||||||
if addprefix:
|
elif dirname == "_anki/js/vendor":
|
||||||
oldpath = path
|
base, ext = os.path.splitext(filename)
|
||||||
path = f"{targetPath}{addprefix}{filename}"
|
|
||||||
print(f"legacy {oldpath} remapped to {path}")
|
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) :]
|
return _exportFolder, path[len(targetPath) :]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue