Stop wanton verbiage from autocmds clogging up the console

This commit is contained in:
Oliver Blanthorn 2018-03-26 14:00:26 +01:00
parent 813302469f
commit 2eda9b8fb2
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -624,15 +624,12 @@ loadaucmds()
//@hidden
//#content
export async function loadaucmds(){
console.log("AUCMDS TRIED TO RUN")
// for some reason, this never changes from the default, even when there is user config (e.g. set via `aucmd bbc.co.uk mode ignore`)
let aucmds = await config.getAsync("autocmds", "DocStart")
console.log(aucmds)
const ausites = Object.keys(aucmds)
// yes, this is lazy
const aukey = ausites.find(e=>window.document.location.href.includes(e))
if (aukey !== undefined){
console.log(aukey)
Messaging.message("commandline_background", "recvExStr", [aucmds[aukey]])
}
}