diff --git a/dist/app.min.js b/dist/app.min.js index a4935c7c9..4d2bd76f5 100644 --- a/dist/app.min.js +++ b/dist/app.min.js @@ -3353,7 +3353,7 @@ NetsBloxMorph.prototype.showUpdateNotification=function(){this.simpleNotificatio NetsBloxMorph.prototype.linkAccount=function(){(new DialogBoxMorph(null,async a=>{try{await this.cloud.linkAccount(a.username.toLowerCase(),a.password,"Snap!"),this.showMessage(localize("Linked account!"),2)}catch(b){this.showMessage(localize("Unable to link account:")+" "+b.message,2)}})).withKey("cloudlogin").promptCredentials("Sign in with Snap!","login",null,null,null,null,"stay signed in on this computer\nuntil logging out",this.world(),this.cloudIcon(),this.cloudMsg)}; NetsBloxMorph.prototype.unlinkAccount=async function(a){const {username:b}=a;if(await this.confirm(localize("Are you sure you would like to unlink ")+b+"?",localize("Unlink Account?")))try{await this.cloud.unlinkAccount(a),this.showMessage(localize("Unlinked ")+b,2)}catch(c){this.showMessage(localize("Unable to unlink account: ")+c.responseText,2)}}; function loadWasmModule(a,b){console.log(`loading wasm module: ${a}`);const c=document.createElement("script");c.type="module";c.innerHTML=[`import init, {${b.join(",")}} from '/src/wasm/${a}/${a}.js';`,"await init();",`window.${a} = {};`,...b.map(d=>`window.${a}.${d} = ${d};`)].join("\n");document.body.appendChild(c)}window.addEventListener("DOMContentLoaded",()=>{loadWasmModule("amm_sdk_netsblox_wasm",["translate_musicxml","translate_midi"])});NetsBloxSerializer.prototype=new SnapSerializer; -NetsBloxSerializer.prototype.constructor=NetsBloxSerializer;NetsBloxSerializer.uber=SnapSerializer.prototype;SnapSerializer.prototype.isSavingHistory=!0;NetsBloxSerializer.prototype.appName="NetsBlox";NetsBloxSerializer.prototype.version="2.4.15";NetsBloxSerializer.prototype.app=NetsBloxSerializer.prototype.appName+" "+NetsBloxSerializer.prototype.version+", http://netsblox.org";function NetsBloxSerializer(){this.init()} +NetsBloxSerializer.prototype.constructor=NetsBloxSerializer;NetsBloxSerializer.uber=SnapSerializer.prototype;SnapSerializer.prototype.isSavingHistory=!0;NetsBloxSerializer.prototype.appName="NetsBlox";NetsBloxSerializer.prototype.version="2.4.16";NetsBloxSerializer.prototype.app=NetsBloxSerializer.prototype.appName+" "+NetsBloxSerializer.prototype.version+", http://netsblox.org";function NetsBloxSerializer(){this.init()} NetsBloxSerializer.prototype.loadMessageType=function(a,b){var c=b.childNamed("name").contents;b=b.childNamed("fields").children.map(function(d){return d.contents});a.addMessageType({name:c,fields:b})};NetsBloxSerializer.prototype.loadCustomBlock=function(a,b){"services"===a.attributes.category&&(a.attributes.category="network");return NetsBloxSerializer.uber.loadCustomBlock.call(this,a,b)}; SnapSerializer.prototype.getInitialStageSpriteIds=function(a){a=a.childNamed("stage").attributes.collabId;var b=a.split("_").slice(0,2).join("_");return[a,b]};MessageFrame.prototype.toXML=function(a){var b=this;return this.names().map(function(c){return b.getMsgType(c)}).map(function(c){return a.format("%",a.store(c))}).join("")}; MessageType.prototype.toXML=function(a){var b=this.fields.map(function(c){return a.format("%",a.escape(c))}).join("");return a.format("%%",a.escape(this.name),b)};HintInputSlotMorph.prototype.toXML=function(a){return this.empty?a.format("$",""):InputSlotMorph.prototype.toXML.call(this,a)};SnapActions.addActions("addMessageType","deleteMessageType");ActionManager.URL="ws://"+SERVER_ADDRESS+"/collaboration"; diff --git a/index.dot b/index.dot index fcfb42961..645cb6711 100644 --- a/index.dot +++ b/index.dot @@ -80,7 +80,7 @@ {{ } else { }} - + {{ } }} diff --git a/src/store-ext.js b/src/store-ext.js index bcdbdac2a..9aff2e800 100644 --- a/src/store-ext.js +++ b/src/store-ext.js @@ -8,7 +8,7 @@ NetsBloxSerializer.uber = SnapSerializer.prototype; SnapSerializer.prototype.isSavingHistory = true; NetsBloxSerializer.prototype.appName = 'NetsBlox'; -NetsBloxSerializer.prototype.version = '2.4.15'; +NetsBloxSerializer.prototype.version = '2.4.16'; NetsBloxSerializer.prototype.app = NetsBloxSerializer.prototype.appName + ' ' + NetsBloxSerializer.prototype.version + ', http://netsblox.org'; diff --git a/src/wasm/amm_sdk_netsblox_wasm/amm_sdk_netsblox_wasm_bg.wasm b/src/wasm/amm_sdk_netsblox_wasm/amm_sdk_netsblox_wasm_bg.wasm index 83d8d16b5..5061501a8 100644 Binary files a/src/wasm/amm_sdk_netsblox_wasm/amm_sdk_netsblox_wasm_bg.wasm and b/src/wasm/amm_sdk_netsblox_wasm/amm_sdk_netsblox_wasm_bg.wasm differ