Jens Mönig 2018-03-08 17:22:44 +01:00
rodzic b15d5c2402
commit 04d3a37b67
2 zmienionych plików z 8 dodań i 4 usunięć

11
gui.js
Wyświetl plik

@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation, BoxMorph, MediaRecorder*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.gui = '2018-March-05'; modules.gui = '2018-March-08';
// Declarations // Declarations
@ -3499,7 +3499,7 @@ IDE_Morph.prototype.aboutSnap = function () {
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn, module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn,
world = this.world(); world = this.world();
aboutTxt = 'Snap! 4.1.2.3\nBuild Your Own Blocks\n\n' aboutTxt = 'Snap! 4.1.2.4 - dev -\nBuild Your Own Blocks\n\n'
+ 'Copyright \u24B8 2018 Jens M\u00F6nig and ' + 'Copyright \u24B8 2018 Jens M\u00F6nig and '
+ 'Brian Harvey\n' + 'Brian Harvey\n'
+ 'jens@moenig.org, bh@cs.berkeley.edu\n\n' + 'jens@moenig.org, bh@cs.berkeley.edu\n\n'
@ -5608,8 +5608,11 @@ IDE_Morph.prototype.getURL = function (url, callback, responseType) {
async = callback instanceof Function, async = callback instanceof Function,
myself = this, myself = this,
rsp; rsp;
request.responseType = responseType || 'text'; if (async) {
rsp = (request.responseType === 'text') ? 'responseText' : 'response'; request.responseType = responseType || 'text';
}
rsp = (!async || request.responseType === 'text') ? 'responseText'
: 'response';
try { try {
request.open('GET', url, async); request.open('GET', url, async);
if (async) { if (async) {

Wyświetl plik

@ -4014,3 +4014,4 @@ Translation Updates:
180308 180308
------ ------
* Objects: fixed #2053 * Objects: fixed #2053
* GUI: fixed #2052