mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-06-28 19:10:17 +12:00
tiny optimization
This commit is contained in:
parent
5f7901f026
commit
cfffdc9998
|
@ -789,6 +789,7 @@ class FimFic2Epub extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
replaceRemoteResources () {
|
replaceRemoteResources () {
|
||||||
|
if (this.remoteResources.size === 0) return
|
||||||
if (!this.options.includeExternal) {
|
if (!this.options.includeExternal) {
|
||||||
this.remoteResources.forEach((r, url) => {
|
this.remoteResources.forEach((r, url) => {
|
||||||
if (r.originalUrl && r.where) {
|
if (r.originalUrl && r.where) {
|
||||||
|
|
Loading…
Reference in a new issue