@@ -4,10 +4,10 @@ const outlines = sites.filter(site => site.rss).map(site => {
44
55const template = `<?xml version="1.0" encoding="UTF-8"?><opml version="1.1"><head></head><body>${outlines.join('')}</body></opml>`
66
7−window.onload = function () {
7+window.addEventListener('DOMContentLoaded', () => {
88 const a = document.getElementById('opml')
99 if (a) {
1010 a.setAttribute('href', 'data:text/plain;charset=utf-8,' + window.encodeURIComponent(template))
1111 a.setAttribute('download', 'webring.opml')
1212 }
13−}
13+})