import changelogManager from "../changelog/changelogManager.js" import { cleanHTML } from "../sub/utils.js"; let cache = {} export function changelogHistory() { // blockId 0 if (cache['0']) return cache['0']; let history = changelogManager("history"); let render = ``; let historyLen = history.length; for (let i in history) { let separator = (i !== 0 && i !== historyLen) ? '
' : ''; render += ` ${separator}${history[i]["banner"] ? `
` : ''} ` } render = cleanHTML(render); cache['0'] = render; return render; }