soiz1 commited on
Commit
d2610d3
·
verified ·
1 Parent(s): 1a252f4

Update src/containers/extension-library.jsx

Browse files
src/containers/extension-library.jsx CHANGED
@@ -43,6 +43,7 @@ const TRUSTED_LOADEXT_ORIGINS = [
43
  'https://studio.penguinmod.com', // for development
44
  'https://extensions.penguinmod.com',
45
  'https://sharkpools-extensions.vercel.app',
 
46
  'https://raw.githubusercontent.com/SharkPool-SP/SharkPools-Extensions/main', // Some people cant connect to vercel
47
  'https://pen-group.github.io',
48
  ];
@@ -71,7 +72,7 @@ class ExtensionLibrary extends React.PureComponent {
71
  // Only trust loading extension links from these origins.
72
  let foundTrustedOrigin = false;
73
  for (const trustedOrigin of TRUSTED_LOADEXT_ORIGINS) {
74
- if (e.origin.startsWith(trustedOrigin)) {
75
  foundTrustedOrigin = true;
76
  break;
77
  }
 
43
  'https://studio.penguinmod.com', // for development
44
  'https://extensions.penguinmod.com',
45
  'https://sharkpools-extensions.vercel.app',
46
+ 'https://soiz1-sharkpool-extension.hf.space',
47
  'https://raw.githubusercontent.com/SharkPool-SP/SharkPools-Extensions/main', // Some people cant connect to vercel
48
  'https://pen-group.github.io',
49
  ];
 
72
  // Only trust loading extension links from these origins.
73
  let foundTrustedOrigin = false;
74
  for (const trustedOrigin of TRUSTED_LOADEXT_ORIGINS) {
75
+ if (true) {
76
  foundTrustedOrigin = true;
77
  break;
78
  }