diff options
Diffstat (limited to 'runtime/permissions.rs')
-rw-r--r-- | runtime/permissions.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/permissions.rs b/runtime/permissions.rs index 70d243cb0..c50783f9d 100644 --- a/runtime/permissions.rs +++ b/runtime/permissions.rs @@ -628,6 +628,12 @@ impl deno_fetch::FetchPermissions for Permissions { } } +impl deno_websocket::WebSocketPermissions for Permissions { + fn check_net_url(&self, url: &url::Url) -> Result<(), AnyError> { + Permissions::check_net_url(self, url) + } +} + /// Shows the permission prompt and returns the answer according to the user input. /// This loops until the user gives the proper input. #[cfg(not(test))] |