From 92429942b8a77b69ca47b75a9d52e204f5b91bab Mon Sep 17 00:00:00 2001 From: nikolajlauridsen Date: Mon, 4 Oct 2021 14:54:38 +0200 Subject: [PATCH] Don't search in array --- .../src/views/common/drawers/help/help.controller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/common/drawers/help/help.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/drawers/help/help.controller.js index 51497d145d..5b9626c676 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/drawers/help/help.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/common/drawers/help/help.controller.js @@ -222,8 +222,7 @@ } } function getPlatform() { - const allPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE', 'Android', 'iPhone', 'iPad', 'iPod']; - return allPlatforms.find(item => item === window.navigator.platform); + return window.navigator.platform; } evts.push(eventsService.on("appState.tour.complete", function (event, tour) { tourService.getGroupedTours().then(function(groupedTours) {