kopia lustrzana https://github.com/backface/turtlestitch
fix block library export encoding glitch
rodzic
e005d71601
commit
b5f30002a5
6
byob.js
6
byob.js
|
@ -106,7 +106,7 @@ SymbolMorph, isNil*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.byob = '2015-May-21';
|
modules.byob = '2015-May-23';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
@ -3301,13 +3301,13 @@ BlockExportDialogMorph.prototype.exportBlocks = function () {
|
||||||
this.serializer.serialize(this.blocks)
|
this.serializer.serialize(this.blocks)
|
||||||
);
|
);
|
||||||
if (this.blocks.length > 0) {
|
if (this.blocks.length > 0) {
|
||||||
window.open(encodeURI('data:text/xml,<blocks app="'
|
window.open('data:text/xml,<blocks app="'
|
||||||
+ this.serializer.app
|
+ this.serializer.app
|
||||||
+ '" version="'
|
+ '" version="'
|
||||||
+ this.serializer.version
|
+ this.serializer.version
|
||||||
+ '">'
|
+ '">'
|
||||||
+ str
|
+ str
|
||||||
+ '</blocks>'));
|
+ '</blocks>');
|
||||||
} else {
|
} else {
|
||||||
new DialogBoxMorph().inform(
|
new DialogBoxMorph().inform(
|
||||||
'Export blocks',
|
'Export blocks',
|
||||||
|
|
|
@ -2508,3 +2508,7 @@ ______
|
||||||
150521
|
150521
|
||||||
------
|
------
|
||||||
* BYOB: Fix encoding for exported libraries of global blocks
|
* BYOB: Fix encoding for exported libraries of global blocks
|
||||||
|
|
||||||
|
150523
|
||||||
|
------
|
||||||
|
* BYOB: Fix encoding glitch
|
||||||
|
|
Ładowanie…
Reference in New Issue