Commit graph pcjs/my_modules/shared/lib/embed.js
Author SHA1 Message Date
Jeff Parsons
905a30017e Some minor Debugger tweaks and other improvements
If a Markdown document contains an embedded machine that specifies a version number (eg, "1.15.6"), then the web server will switch to serving a compiled version, since that's the only way it can guarantee the requested version
2014-10-31 17:44:34 -07:00
Jeff Parsons
426fd0ff40 Removed all obsolete @suppress directives 2014-10-30 16:36:23 -07:00
Jeff Parsons
29a3aceeb0 Improved error reporting when embedMachine() fails (eg, due to browser restrictions) 2014-10-30 09:54:09 -07:00
Jeff Parsons
eec10da1b7 Display progress messages as machine XML files are being loaded/processed 2014-10-29 15:23:35 -07:00
Jeff Parsons
e0487bccd8 Fixed localStorage availability test (for real this time), and asynchronified embed.js
I spent some time fixing the latter because browsers have started warning that synchronous XMLHttpRequest calls on the "main thread" (as Firefox calls it) are deprecated. Since the days of such calls seems to be numbered, I decided to act sooner rather than later.  All PCjs XMLHttpRequests go through a single library function (weblib.loadResource), which accepts an fAsync parameter, and the only code that is still allowed to pass false for that parameter are "emergency" shutdown requests (which I believe browsers must still allow).
2014-10-28 17:12:24 -07:00
jeffpar
a5e3e6a59d Initial commit (a clone of the jsmachines project as of v1.15.3) 2014-09-27 14:52:57 -07:00