mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Removing legacy browserCheck() utility
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
parent
efcf02e0ad
commit
5c1ded6c4b
@ -1,20 +0,0 @@
|
|||||||
import React from "react";
|
|
||||||
import { Notifications } from "./components/notifications";
|
|
||||||
import { Trans } from "@lingui/macro";
|
|
||||||
|
|
||||||
export function browserCheck() {
|
|
||||||
const ua = window.navigator.userAgent
|
|
||||||
const msie = ua.indexOf('MSIE ') // IE < 11
|
|
||||||
const trident = ua.indexOf('Trident/') // IE 11
|
|
||||||
const edge = ua.indexOf('Edge') // Edge
|
|
||||||
if (msie > 0 || trident > 0 || edge > 0) {
|
|
||||||
Notifications.info(
|
|
||||||
<p>
|
|
||||||
<Trans>
|
|
||||||
<b>Your browser does not support all Lens features. </b>{" "}
|
|
||||||
Please consider using another browser.
|
|
||||||
</Trans>
|
|
||||||
</p>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user