Enable zlib compression of exported levels

This commit is contained in:
Eevee (Evelyn Woods) 2024-04-20 01:45:25 -06:00
parent b44da28020
commit b6f38f835d

View File

@ -488,9 +488,7 @@ export class Editor extends PrimaryView {
let export_items = [ let export_items = [
["Share this level with a link", () => { ["Share this level with a link", () => {
// FIXME enable this once gliderbot can understand it let data = util.b64encode(fflate.zlibSync(c2g.synthesize_level(this.stored_level)));
//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');