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?

  • @perchanceM
    link
    English
    5
    edit-2
    2 months ago

    @[email protected] @[email protected] 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)

    https://webkit.org/blog/15063/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: https://www.theverge.com/2024/1/25/24050478/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: https://open-web-advocacy.org/blog/us-doj-files-apple-antitrust-case/ 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 :]

    • alloOP
      link
      English
      22 months ago

      thank you * 2!

    • alloOP
      link
      English
      12 months ago

      is indeed fixed thank you!

  • @jordanlund
    link
    English
    22 months ago

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

    • alloOP
      link
      English
      22 months ago

      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
        link
        English
        22 months ago

        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

        • alloOP
          link
          English
          2
          edit-2
          2 months ago

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

  • eatham 🇭🇲M
    link
    fedilink
    English
    12 months ago

    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).