mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-12 05:59:06 -04:00
Adding automatically-generated variable lists to the accessible toolbox. (#1149)
Fixing a bug with the core-only uncompressed file not finding its own directory.
This commit is contained in:
parent
7336d03538
commit
f48a68a9ef
3 changed files with 70 additions and 42 deletions
2
build.py
2
build.py
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue