soiz1 commited on
Commit
9c37d98
·
verified ·
1 Parent(s): c9d02e4

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
- const menuItems = [
181
  {
182
  name: 'TMPose2Scratch',
183
  extensionId: 'tmpose2scratch',
@@ -1740,7 +1740,7 @@ if (IsLocal || IsLiveTests) {
1740
  menuItems.push(ext);
1741
  });
1742
  }
1743
- const menuItems = (typeof ENV !== 'undefined' && ENV.CanLoadCustomExtension === false)
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