Skip to content

Commit a7de9ae

Browse files
committed
Merge pull request OpenUserJS#980 from Martii/Issue-944matchPolicyWith970
Remove required `@updateURL` Auto-merge
2 parents 46c281f + 8c99489 commit a7de9ae

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

controllers/scriptStorage.js

-19
Original file line numberDiff line numberDiff line change
@@ -628,25 +628,6 @@ exports.storeScript = function (aUser, aMeta, aBuf, aCallback, aUpdate) {
628628
return;
629629
}
630630

631-
if (process.env.FORCE_STORE_UPDATEURL_CHECK === 'true') {
632-
// Conditional can't install a userscript without an updateURL
633-
updateURL = findMeta(aMeta, 'UserScript.updateURL.0.value');
634-
if (!updateURL) {
635-
aCallback(null);
636-
return;
637-
}
638-
639-
// Can't install a userscript with an updateURL of .user.js
640-
updateURL = URL.parse(updateURL);
641-
if (/^(?:localhost|openuserjs|oujs)\.org$/.test(updateURL.host) &&
642-
/^\/(?:install|src)/.test(updateURL.pathname) &&
643-
/\.js$/.test(updateURL.pathname))
644-
{
645-
aCallback(null);
646-
return;
647-
}
648-
}
649-
650631
author = findMeta(aMeta, 'OpenUserJS.author.0.value');
651632
collaborators = findMeta(aMeta, 'OpenUserJS.collaborator.value');
652633

0 commit comments

Comments
 (0)