kopia lustrzana https://github.com/backface/turtlestitch
Update gui.js
rodzic
d1188d22e0
commit
d29382622e
13
src/gui.js
13
src/gui.js
|
@ -10072,9 +10072,16 @@ CostumeIconMorph.prototype.importEmbeddedData = function () {
|
||||||
|
|
||||||
CostumeIconMorph.prototype.typeOfStringData = function (aString) {
|
CostumeIconMorph.prototype.typeOfStringData = function (aString) {
|
||||||
// check for Snap specific files, projects, libraries, sprites, scripts
|
// check for Snap specific files, projects, libraries, sprites, scripts
|
||||||
if (aString.startsWith('<')) {
|
if (aString[0] === '<') {
|
||||||
if (['project', 'snapdata', 'blocks', 'sprites', 'block'].some(tag =>
|
if ([
|
||||||
aString.slice(1).startsWith(tag))) {
|
'project',
|
||||||
|
'snapdata',
|
||||||
|
'blocks',
|
||||||
|
'sprites',
|
||||||
|
'block',
|
||||||
|
'script'
|
||||||
|
].some(tag => aString.slice(1).startsWith(tag))
|
||||||
|
) {
|
||||||
return 'blocks';
|
return 'blocks';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue