Why does my generator not work on IPhone?

https://lemmy.world/pictrs/image/053a4ab1-92e7-4332-9aea-711dbfc16694.webp

just learned today that Beautiful People does not work on Iphone. Also variable beautiful is imported right at the top of the perchance page among the imports so from the error i have no idea.

I don’t have an iphone and Android and PC have always had no problem. What is different about IPhone that is causing my generator to error on it? Anyone else have this problem with IPhone?

eatham,
@eatham@aussie.zone avatar

You need to update iOS, as this is an issue with WebKit (the browser engine used in safari that apple forces all other iOS browsers to use).

perchance,

@jordanlund @Alllo Thanks for reporting! This was indeed due to a Safari bug. The WebKit/Safari team fixed it a couple of months ago, but likely hasn’t reached all Safari users yet:

Fixed block-level function declarations to have correct scope in global code and aligned the detection of hoistable block-level legacy function declarations with the spec. (113880075)

webkit.org/…/webkit-features-in-safari-17-4/

This bug has actually existed for years - I submitted a WebKit bug report several years ago, and I could have sworn I added a workaround to fix it on Perchance, but apparently not! A bunch of people probably won’t be able to upgrade to 17.4 since Apple’s Safari software updates are pretty strongly tied to hardware versions (which is really stupid ✨), so I’ve just added a bandaid fix for the older Safari versions. Let me know if there are any other issues, and thanks again!

[Begin tangential rant] Safari requires a lot of bandaids, and I’d honestly rather just tell people to move to Chrome/Firefox/Edge, but Apple prevents other browser engines from being installed on iOS (Chrome iOS is just a “skinned” Safari browser, for example), though that is changing in the EU: theverge.com/…/apple-ios-17-4-browser-engines-eu because it’s being deemed a way in which Apple actively prevents non-Apple platforms from becoming dominant (i.e. to keep people in their App Store and away from open platforms like the web). And other countries might soon follow suit: open-web-advocacy.org/…/us-doj-files-apple-antitr… which might mean the end of Apple holding the web back by forcing a huge percentage of the world population to use a buggy browser that drags its feet on cool new stuff (e.g. WebUSB, WebGPU, etc.). Exciting times ahead for the web platform I think. [end of rant, apologies :]

Alllo,
@Alllo@lemmy.world avatar

thank you * 2!

Alllo,
@Alllo@lemmy.world avatar

is indeed fixed thank you!

jordanlund,
@jordanlund@lemmy.world avatar

What browser are you using on iPhone? It may be some problem Chrome is fixing automatically on Android that Safari is not.

Alllo,
@Alllo@lemmy.world avatar

just tried installing safari on my computer and my computer is refusing to run it lol. and apparently there is no real android safari.

thanks tho, i bet it does have to do with safari

jordanlund,
@jordanlund@lemmy.world avatar

So bad news, I just had a chance to test it on my iPhone, same variable error, Safari, Firefox and Chrome.

So looks like it must be an iOS problem.

iPhone 14
iOS 16.7.2
Firefox 123.4 (39582)
Chrome 123.0.6312.52
Safari 16.7.2

Alllo, (edited )
@Alllo@lemmy.world avatar

thank you alot. can you please check a few things? edit:solved ty

  • All
  • Subscribed
  • Moderated
  • Favorites
  • perchance@lemmy.world
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Durango
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • tacticalgear
  • ethstaker
  • JUstTest
  • InstantRegret
  • Leos
  • normalnudes
  • everett
  • khanakhh
  • osvaldo12
  • cisconetworking
  • modclub
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines