Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let file_navigation_documents_xhtml = Template["navigation-documents.xhtml"];
const navigationList = State.mangaInfo.contents.map(navPointInfo => {
if (navPointInfo.refindex === 1)
return '<li><a href="text/p_cover.xhtml">' + htmlToEscape(navPointInfo.text) + '</a></li>';
return '<li><a href="text/p_' + counter(navPointInfo.refindex - 2, 4) + '.xhtml">' + htmlToEscape(navPointInfo.text) + '</a></li>';
}).join('\n');
file_navigation_documents_xhtml = file_navigation_documents_xhtml
.replace('', navigationList)
// render standard.opf file
let file_opf = Template["standard.opf"];
const imageItemStr = State.pageInfo.list.map((blobIndex, index) => {
const blob = BlobStore.getBlobObject(blobIndex);
const mimetype = String(blob.type);
if (index === 0)
return ''
const num = counter(index - 1, 4);
return '';
}).join('\n');
const pageItemStr = State.pageInfo.list.map((b, index) => {
if (index === 0)
return '';