-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
browser/safariOnly affects Apple SafariOnly affects Apple Safarihelp wantedtype/bugSomething is misbehavingSomething is misbehaving
Description
export const isSafari = /^((?!chrome|android).)*safari/i.test(userAgent);
doesn't seem to catch WKWebView, which is the browser engine powering Safari. Safari's user agent string (on an iPad) is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15
Whereas WKWebView's user agent string (on an iPad) is:
Mozilla/5.0 (iPad; CPU OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
This is causing the demo on https://xtermjs.org to not show any content in WKWebView.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
browser/safariOnly affects Apple SafariOnly affects Apple Safarihelp wantedtype/bugSomething is misbehavingSomething is misbehaving