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

Introduce warning message for Safari 13 and below #18258

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

davidtaylorhq
Copy link
Member

Discourse will be dropping support for these browsers in early 2023. https://meta.discourse.org/t/224747

Screenshot 2022-09-15 at 11 26 48

Discourse will be dropping support for these browsers in early 2023. https://meta.discourse.org/t/224747
import { withPluginApi } from "discourse/lib/plugin-api";

function setupMessage(api) {
const isSafari = navigator.vendor === "Apple Computer, Inc.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you use the Safari detection from sniff-capabilities ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried, but on iOS 12, isSafari is false... so I guess our safari detection is broken for older versions. I started fixing it, but I figured it wasn't worth it since we're dropping support very soon anyway.

@davidtaylorhq davidtaylorhq merged commit 3904c23 into main Sep 16, 2022
@davidtaylorhq davidtaylorhq deleted the safari-13-warning branch September 16, 2022 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants