${editLink}
import _ from './anime-client.js'; // Click on hidden MAL checkbox so // that MAL id is passed _.on('main', 'change', '.big-check', (e) => { const id = e.target.id; document.getElementById(`mal_${id}`).checked = true; }); /** * On search results with an existing library entry, this shows that fact, with an edit link for the existing * library entry * * @param {'anime'|'manga'} type * @param {Object} item * @returns {String} */ function renderEditLink (type, item) { if (item.libraryEntry === null) { return ''; } return `