From 4bb7e72d14b22737b1b91d8d65e0eecf329b4453 Mon Sep 17 00:00:00 2001
From: gabriellsh <40830821+gabriellsh@users.noreply.github.com>
Date: Thu, 26 Oct 2023 11:16:03 -0300
Subject: [PATCH] chore: get more assets through CDN (#30743)
---
apps/meteor/app/ui-master/server/index.js | 7 ++++---
.../admin/deviceManagement/DeviceManagementAdminRoute.tsx | 3 ++-
.../admin/engagementDashboard/EngagementDashboardRoute.tsx | 3 ++-
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/apps/meteor/app/ui-master/server/index.js b/apps/meteor/app/ui-master/server/index.js
index 34a9618d2db6..2d4f3cc7de56 100644
--- a/apps/meteor/app/ui-master/server/index.js
+++ b/apps/meteor/app/ui-master/server/index.js
@@ -6,6 +6,7 @@ import { Tracker } from 'meteor/tracker';
import { withDebouncing } from '../../../lib/utils/highOrderFunctions';
import { settings } from '../../settings/server';
+import { getURL } from '../../utils/server/getURL';
import { applyHeadInjections, headInjections, injectIntoBody, injectIntoHead } from './inject';
import './scripts';
@@ -41,14 +42,14 @@ Meteor.startup(() => {
settings.watch('Assets_SvgFavicon_Enable', (value) => {
const standardFavicons = `
-
- `;
+
+ `;
if (value) {
injectIntoHead(
'Assets_SvgFavicon_Enable',
`${standardFavicons}
- `,
+ `,
);
} else {
injectIntoHead('Assets_SvgFavicon_Enable', standardFavicons);
diff --git a/apps/meteor/ee/client/views/admin/deviceManagement/DeviceManagementAdminRoute.tsx b/apps/meteor/ee/client/views/admin/deviceManagement/DeviceManagementAdminRoute.tsx
index 566a54a597c3..4614a2c9157b 100644
--- a/apps/meteor/ee/client/views/admin/deviceManagement/DeviceManagementAdminRoute.tsx
+++ b/apps/meteor/ee/client/views/admin/deviceManagement/DeviceManagementAdminRoute.tsx
@@ -2,6 +2,7 @@ import { usePermission, useRouter, useSetModal, useCurrentModal, useTranslation
import type { ReactElement } from 'react';
import React, { useEffect } from 'react';
+import { getURL } from '../../../../../app/utils/client/getURL';
import GenericUpsellModal from '../../../../../client/components/GenericUpsellModal';
import { useUpsellActions } from '../../../../../client/components/GenericUpsellModal/hooks';
import PageSkeleton from '../../../../../client/components/PageSkeleton';
@@ -25,7 +26,7 @@ const DeviceManagementAdminRoute = (): ReactElement => {
setModal(
{
setModal(
setModal(null)}