made importing files into variable watchers more lenient wrt to file types

pull/89/head
jmoenig 2018-11-27 14:02:10 +01:00
rodzic c98fdacd4f
commit 4c4a676f4f
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -4,6 +4,7 @@
### 2018-11-27
* Objects: Cache stage>>penTrailsMorph to optimize collision detection
* Objects: Fixed a collision detection errror when objects are sub-pixel sized
* Objects: made importing files into variable watchers more lenient wrt to file types
## v4.2.2.8
### 2018-11-21

Wyświetl plik

@ -9635,10 +9635,10 @@ WatcherMorph.prototype.userMenu = function () {
);
};
if (aFile.type.indexOf("text") === 0) {
frd.readAsText(aFile);
} else {
if (aFile.type.indexOf("text") === -1) {
txtOnlyMsg(aFile.type);
} else {
frd.readAsText(aFile);
}
}