import { services, appName, authorInfo, version, quality, repo, donations } from "./config.js"; import loc from "./sub/loc.js"; let s = services let enabledServices = Object.keys(s).filter((p) => { if (s[p].enabled) { return true } }).sort().map((p) => { if (s[p].alias) { return s[p].alias } else { return p } }).join(', ') let donate = `` for (let i in donations) { donate += `
${i} (${loc("en", 'desc', 'clicktocopy').trim()})
${donations[i]}
` } export default function(obj) { let isIOS = obj.useragent.toLowerCase().match("iphone os") try { return ` ${appName} `; } catch (err) { return `${loc('en', 'apiError', 'fatal', obj.hash)}`; } }