-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add support for older browsers #260
Comments
Hi @Raptor-TK. Your effort to reduce e-waste is fantastic! I'm sorry to disappoint, but unfortunately I get very little time to work on this project and as such, supporting very old browsers would be too far down the priority list for it to be feasible. Equally, it's not just flatnotes that would need to support these old versions but also all of flatnotes dependencies. |
I relate to your e-waste concerns so here's my grain of sand: I have successfully used Babel (https://babeljs.io/) to post-process the Javascript code of a webapp and its dependencies into legacy browser compatible code May be worth looking into for this Flatnotes usecase |
Thanks for the reply Dullage and also Code-Otto for the suggestion. @dullage If its a matter of running this tool on the code to get it to be compatible with more browsers, and given it works as advertised, would this be something that you would consider using to address compatibility with older browsers so that users don't have to use the tool to postprocess the js code for every release? I currently run flatnotes using docker so it can make accessing and updating the .js files a bit tricky each time I update to a new version. |
So I looked at the number of .js files and its quite limited. But there are a lot of .vue files. I also found this: https://cli.vuejs.org/guide/browser-compatibility.html#modern-mode Apparently vue already does use babel and I think all you need to do is edit packages.json to specify browsers to support as described in: https://github.com/browserslist/browserslist Checking the iPhone 6, it's using IOS 12.5.7. Not sure what you'd need to specify for it. I did spot an ios_saf 11 there which might work. |
I can imagine I'd need to build Babel into the Vite build process. As this isn't something I'm familiar with, we'd likely be talking about a number of hours of investigation, implementation and testing. Unfortunately, I'm time short, so have to ruthlessly prioritise. If someone else did the heavy lifting on this, and the change wasn't too much to get my head around, then I'd be happy to merge. |
Will investigate further to see if I can get my head around what needs doing to get it to work. |
Still haven't had time to look into it yet. Will try look into it when I have more time. |
Good effort trying 👍. Shame it didn't work out. |
I can also fully relate to this. I thought this would affect me, too, which would have sucked, because I just found this project and it seems like a perfect way to access my collection of unorganized Markdown files. But I have an iPhone 6S, not an iPhone 6, which can be updated to iOS version 15.8.3. I tested the demo site on my phone and it seems to fully work for me. Once I install this on my server, I intend to dive into the code a bit, as well. If I can find the time, I may have a look into this. |
I have an old iPhone 6 Plus on iOS 12.5.7 that I cannot upgrade any further however I am using webbased self-hosted services to keep using it via the web browser so I can avoid e-waste.
When I use the built-in iPhone Safari browser or any other browsers like Firefox, Chrome or Opera, when I try to display flatnotes using it will show a blank page.
My understanding is that iPhones use only Apple's webkit engine for all browsers and other browsers are not allowed to use their own web engine.
Would it be possible to improve compatibility for older phones so that we can use this on older devices.
Unfortunately, I can't figure out any way to get any web browser debugging as none of the browsers on IOS support this.
The text was updated successfully, but these errors were encountered: