export function renderError(container, message) { if (!container) return; try { const $c = (container.jquery) ? container : (typeof container === 'string' ? $(container) : $(container)); $c.html(`
`); } catch (e) { if (container instanceof Element) container.innerHTML = ``; } } export function insertHtml(container, html) { if (!container) return; try { const $c = (container.jquery) ? container : (typeof container === 'string' ? $(container) : $(container)); $c.html(html); } catch (e) { if (container instanceof Element) container.innerHTML = html; } }