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

Palettes Do Not Load On Mobile Devices In Demo #15

Open
koopes opened this issue Jan 6, 2023 · 5 comments
Open

Palettes Do Not Load On Mobile Devices In Demo #15

koopes opened this issue Jan 6, 2023 · 5 comments

Comments

@koopes
Copy link

koopes commented Jan 6, 2023

The Demo, Recently Has Been Unavailable To Be Used On Mobile Devices, What I Mean By This Is That The Palettes Stay On “Loading Palette From File”, Only On Mobile. Is There Any Way To Fix This?

@jlarmstrongiv
Copy link

On iOS, I am also receiving that error.

@jlarmstrongiv
Copy link

Oddly enough, it works fine on ipad though

optimized-IMG_0013

@jlarmstrongiv
Copy link

Found a way to get the console errors. According to this stack overflow post:

Looks like Safari doesn't support lookbehind yet (that is, your (?<=/)). One alternative would be…

@jlarmstrongiv
Copy link

The only place where those lookbehind regex expressions are used seem to be:

try_parse_line(line, csv_palette, /(?<![#x][0-9a-fA-F]*)([0-9]*\.?[0-9]+),\s*([0-9]*\.?[0-9]+),\s*([0-9]*\.?[0-9]+)/) or
try_parse_line(line, csv_palette, /(?<![#x][0-9a-fA-F]*)([0-9]*\.?[0-9]+);\s*([0-9]*\.?[0-9]+);\s*([0-9]*\.?[0-9]+)/) or
try_parse_line(line, ssv_palette, /(?<![#x][0-9a-fA-F]*)([0-9]*\.?[0-9]+)[ ]([0-9]*\.?[0-9]+)[ ]([0-9]*\.?[0-9]+)/) or
try_parse_line(line, ssv_palette, /(?<![#x][0-9a-fA-F]*)([0-9]*\.?[0-9]+)\s+([0-9]*\.?[0-9]+)\s+([0-9]*\.?[0-9]+)/)

@jlarmstrongiv
Copy link

It seems like this feature will be added in safari in the next major iOS version https://bugs.webkit.org/show_bug.cgi?id=174931

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants