@carlfink, in the past, I edited JS files in the Program Files (x86) directory as well, but I then had issues whenever I updated the version of Lectora. It seemed like once I edited a file in this area, it would not be updated if a ran a patch or minor version update, which left my Lectora files “mismatched” and led to other run-time issues. The only files I have edited now are for my 16.2.2 version, which will no longer be updated. I haven’t edited any files in v17 or v18.
For v18, I too am disappointed that the code isn’t cleaned up when publishing to HTML5 only. Flash references are flagged by my customer’s security scan, particularly the AllowScriptAccess=”always” in trivantis.js. Should be “sameDomain” at the very least.