console.log browser

This commit is contained in:
Nastya 2024-04-11 15:20:56 +03:00
parent acc7f71ac3
commit d4107a1f93

@ -23,6 +23,8 @@ if (userAgent.toLowerCase().includes("macintosh")) { OSDevice = "Mac OS"; }
if (OSDevice === undefined) { OSDevice = userAgent; }
//браузер
console.log(Bowser)
console.log(Bowser.name)
let browserUser: string;
if (Bowser.name === "Chrome") {
browserUser = "Chrome";