@topconsultnpm/sdkui-react-beta 6.11.104 → 6.11.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,19 +162,17 @@ const TMLoginForm = (props) => {
|
|
162
162
|
// setShowDefaultLogo(false);
|
163
163
|
// }
|
164
164
|
// }).catch(() => setShowDefaultLogo(true));
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
.catch(() => setShowDefaultLogo(true));
|
177
|
-
}, []);
|
165
|
+
fetch('logo-custom.svg', { method: 'HEAD' })
|
166
|
+
.then(res => {
|
167
|
+
const isSvg = res.headers.get('Content-Type')?.includes('image/svg');
|
168
|
+
if (res.ok && isSvg) {
|
169
|
+
setShowDefaultLogo(false);
|
170
|
+
}
|
171
|
+
else {
|
172
|
+
setShowDefaultLogo(true);
|
173
|
+
}
|
174
|
+
})
|
175
|
+
.catch(() => setShowDefaultLogo(true));
|
178
176
|
}, []);
|
179
177
|
useEffect(() => {
|
180
178
|
const checkRefsReady = () => inputRefs.every(ref => ref?.current);
|