Cleaned up the MACRO-10 assembly demos

This commit is contained in:
Jeff 2017-03-24 14:11:28 -07:00 • committed by Jeff Parsons
commit eed6e990e3
6 changed files with 30 additions and 10 deletions

View file

@ -288,7 +288,7 @@ class Macro10 {
/*
* We know that local resources ending with ".MAC" are actually stored with a ".txt" extension.
*/
if (sURL[0] == '/' && sURL.slice(-4) == ".MAC") sURL += ".txt";
if (sURL.slice(-4).toUpperCase() == ".MAC") sURL += ".txt";
Web.getResource(sURL, null, true, function processMacro10(sFile, sResource, nErrorCode) {
if (nErrorCode) {