Only run the link regex over virtualized resources client side

This commit is contained in:
Kovid Goyal 2019-10-16 04:44:29 +05:30
parent 8c3c634650
commit 47e69cb545
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -45,7 +45,7 @@ def load_resources(book, root_name, previous_resources, proceed):
def got_one(data, name, mimetype):
ans[name] = v'[data, mimetype]'
if jstype(data) is 'string':
if jstype(data) is 'string' and book.manifest.files[name]?.is_virtualized:
find_virtualized_resources(data)
return setTimeout(do_one, 0)