Disable zlibbed level URLs since they'll break gliderbot

This commit is contained in:
Eevee (Evelyn Woods) 2021-01-01 22:26:29 -07:00
parent 29df283f80
commit a657682035

View File

@ -2631,7 +2631,9 @@ export class Editor extends PrimaryView {
}, 60 * 1000); }, 60 * 1000);
}); });
_make_button("Share", ev => { _make_button("Share", ev => {
let data = util.b64encode(fflate.zlibSync(new Uint8Array(c2g.synthesize_level(this.stored_level)))); // FIXME enable this once gliderbot can understand it
//let data = util.b64encode(fflate.zlibSync(new Uint8Array(c2g.synthesize_level(this.stored_level))));
let data = util.b64encode(c2g.synthesize_level(this.stored_level));
let url = new URL(location); let url = new URL(location);
url.searchParams.delete('level'); url.searchParams.delete('level');
url.searchParams.delete('setpath'); url.searchParams.delete('setpath');