Adding automatically-generated variable lists to the accessible toolbox. ()

Fixing a bug with the core-only uncompressed file not finding its own directory.
This commit is contained in:
CoryDCode 2017-06-05 13:42:51 -07:00 committed by GitHub
parent 7336d03538
commit f48a68a9ef
3 changed files with 70 additions and 42 deletions

View file

@ -115,7 +115,7 @@ window.BLOCKLY_DIR = (function() {
if (!isNodeJS) {
// Find name of current directory.
var scripts = document.getElementsByTagName('script');
var re = new RegExp('(.+)[\/]blockly_(.+)uncompressed\.js$');
var re = new RegExp('(.+)[\/]blockly_(.*)uncompressed\.js$');
for (var i = 0, script; script = scripts[i]; i++) {
var match = re.exec(script.src);
if (match) {