Spaces:
Build error
Build error
Update src/lib/libraries/extensions/index.jsx
Browse files
src/lib/libraries/extensions/index.jsx
CHANGED
@@ -177,7 +177,7 @@ const urlParams = new URLSearchParams(location.search);
|
|
177 |
const IsLocal = String(window.location.href).startsWith(`http://localhost:`);
|
178 |
const IsLiveTests = urlParams.has('livetests');
|
179 |
|
180 |
-
|
181 |
{
|
182 |
name: 'TMPose2Scratch',
|
183 |
extensionId: 'tmpose2scratch',
|
@@ -1740,7 +1740,7 @@ if (IsLocal || IsLiveTests) {
|
|
1740 |
menuItems.push(ext);
|
1741 |
});
|
1742 |
}
|
1743 |
-
|
1744 |
? originalMenuItems.filter(item => item.extensionId !== '')
|
1745 |
: originalMenuItems;
|
1746 |
|
|
|
177 |
const IsLocal = String(window.location.href).startsWith(`http://localhost:`);
|
178 |
const IsLiveTests = urlParams.has('livetests');
|
179 |
|
180 |
+
let menuItems = [
|
181 |
{
|
182 |
name: 'TMPose2Scratch',
|
183 |
extensionId: 'tmpose2scratch',
|
|
|
1740 |
menuItems.push(ext);
|
1741 |
});
|
1742 |
}
|
1743 |
+
menuItems = (typeof ENV !== 'undefined' && ENV.CanLoadCustomExtension === false)
|
1744 |
? originalMenuItems.filter(item => item.extensionId !== '')
|
1745 |
: originalMenuItems;
|
1746 |
|