Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shareable URL Limit Reached #9

Open
ronelm2000 opened this issue Jul 8, 2018 · 2 comments
Open

Shareable URL Limit Reached #9

ronelm2000 opened this issue Jul 8, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@ronelm2000
Copy link

ronelm2000 commented Jul 8, 2018

I reached it when I had 135 characters to sort (which resulted in over 700 sorts).

Seems that with enough "comparisons" [Had many instances where it came to shove it looped; Also I added a boolean and an integer in the mix], it does come to a point where the characters outputted by LZString reach the 2048 character limit set by browsers.

I wonder if it's possible to switch to UTF16 rather than just use ASCII.

EDIT:
On closer inspection it seems that it's the lzstring generating a newline on the result string when it shouldn't. I should probably either check if the libary is up-to-date, or bring it up with them.

@ronelm2000
Copy link
Author

Okay, it seems I have rooted the cause of the problem to Android phones automatically entering newlines even on URL links.

Seems that the only solution for this is to either host a token onto something like mixtape then invoke that, or get a url shortener API.

@execfera execfera added the bug Something isn't working label Jul 8, 2018
@execfera
Copy link
Owner

execfera commented Jul 8, 2018

Thanks for the report. I have some ideas on how to compress the sorting savedata further, but I'd also have to consider backwards compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants