tiny optimization

This commit is contained in:
Daniel Jönsson 2018-03-16 09:32:45 +01:00
parent 5f7901f026
commit cfffdc9998

View file

@ -789,6 +789,7 @@ class FimFic2Epub extends EventEmitter {
}
replaceRemoteResources () {
if (this.remoteResources.size === 0) return
if (!this.options.includeExternal) {
this.remoteResources.forEach((r, url) => {
if (r.originalUrl && r.where) {