From 2c14e059aab48d1b7989bae06c22df79c43d3998 Mon Sep 17 00:00:00 2001 From: fruworg Date: Tue, 1 Aug 2023 00:16:21 +0600 Subject: [PATCH] su --- static/js/agent.js | 12 ++++++------ themes/themu | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/static/js/agent.js b/static/js/agent.js index 99d17bd..1973037 100644 --- a/static/js/agent.js +++ b/static/js/agent.js @@ -6,12 +6,12 @@ const os = getOperatingSystem(userAgent); // Функция для определения браузера function getBrowser(userAgent) { const browsers = { - Chrome: /Chrome\/([0-9.]+)/, - Firefox: /Firefox\/([0-9.]+)/, - Edge: /Edg\/([0-9.]+)/, + Chrome: /Chrome\/([0-9]+)/, + Firefox: /Firefox\/([0-9]+)/, + Edge: /Edg\/([0-9]+)/, IE: /Trident\/.+rv:([0-9]+)/, - Safari: /Safari\/([0-9.]+)/, - Opera: /Opera\/([0-9.]+)/, + Safari: /Safari\/([0-9]+)/, + Opera: /Opera\/([0-9]+)/, }; for (const browser in browsers) { @@ -49,6 +49,6 @@ function getOperatingSystem(userAgent) { return 'Unknown OS'; } -// Полученные значения записываем в элемент с id="ua-agent" +// Полученные значения записываем в элемент с id="user-agentt" const uaInfoElement = document.getElementById("user-agent"); uaInfoElement.textContent = `${browser}, ${os}`; \ No newline at end of file diff --git a/themes/themu b/themes/themu index efae14e..b720f85 160000 --- a/themes/themu +++ b/themes/themu @@ -1 +1 @@ -Subproject commit efae14e36c26540a103d09e80da07acc9b686d55 +Subproject commit b720f854acc021361a6df75e7a0dd74318607c7d