jmoenig / Snap

a visual programming language inspired by Scratch

Home Page:http://snap.berkeley.edu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

config option will reset the url

wwj718 opened this issue · comments

before adding config option

    new IDE_Morph().openIn(world);
image

the url is https://127.0.0.1:8000/snap.html#run:http://wwj718.github.io/post/img/snap-eclipse.xml

After adding config option:

    new IDE_Morph({lang: "zh_CN", noCloud: true}).openIn(world);
image

The content after the hashtag in the URL will disappear: https://127.0.0.1:8000/snap.html#

Thank you! I'll investigate...

hmm... this seems to be a somewhat "hairy" issue. I'm seeing a bunch of complicated tweaks from people who feel strongly about using Snap in their localized versions, and I'm afraid to touch them. I'm not even sure if this behavior might not have been introduced by someone on purpose...

Thank you for your investigation!

I'm not sure if it's a feature or a bug. I encountered the following complaints from users:

  1. After refreshing browser(Want to return to the original state of the project), it will no longer be the previous project.
  2. Unable to share the project to others with the url