diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-08-06 21:10:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 21:10:04 +0200 |
commit | 0d1a522a03c22749e96dab06ca7b3e8b428df701 (patch) | |
tree | 742f0f5495db3ef306b94b078957336c764fbbc7 /runtime/js/40_permissions.js | |
parent | 2b53602d3c798b68db4ce986546d3434b986096a (diff) |
revert: allow URL for permissions (#11600)
Revert changes to "net" permissions in regards to handling URLs
introduced in 15b0e61de.
Diffstat (limited to 'runtime/js/40_permissions.js')
-rw-r--r-- | runtime/js/40_permissions.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/runtime/js/40_permissions.js b/runtime/js/40_permissions.js index 019e65446..c84f8fde8 100644 --- a/runtime/js/40_permissions.js +++ b/runtime/js/40_permissions.js @@ -167,10 +167,6 @@ desc.path = pathFromURL(desc.path); } else if (desc.name === "run") { desc.command = pathFromURL(desc.command); - } else if (desc.name === "net") { - if (desc.host instanceof URL) { - desc.host = desc.host.host; - } } const state = opQuery(desc); @@ -190,10 +186,6 @@ desc.path = pathFromURL(desc.path); } else if (desc.name === "run") { desc.command = pathFromURL(desc.command); - } else if (desc.name === "net") { - if (desc.host instanceof URL) { - desc.host = desc.host.host; - } } const state = opRevoke(desc); @@ -213,10 +205,6 @@ desc.path = pathFromURL(desc.path); } else if (desc.name === "run") { desc.command = pathFromURL(desc.command); - } else if (desc.name === "net") { - if (desc.host instanceof URL) { - desc.host = desc.host.host; - } } const state = opRequest(desc); |