undo the code move

This commit is contained in:
Sandeep Somavarapu 2022-03-14 19:57:32 +05:30
parent efa41ce786
commit 407981e477
No known key found for this signature in database
GPG key ID: DD41CAAC8081CC7D

View file

@ -147,15 +147,15 @@ class ExtensionUrlHandler implements IExtensionUrlHandler, IURLHandler {
const wasHandlerAvailable = this.extensionHandlers.has(ExtensionIdentifier.toKey(extensionId));
const extension = await this.extensionService.getExtension(extensionId);
const trusted = options?.trusted
|| (options?.originalUrl ? await this.extensionUrlTrustService.isExtensionUrlTrusted(extensionId, options.originalUrl) : false)
|| this.didUserTrustExtension(ExtensionIdentifier.toKey(extensionId));
if (!extension) {
await this.handleUnhandledURL(uri, { id: extensionId }, options);
return true;
}
const trusted = options?.trusted
|| (options?.originalUrl ? await this.extensionUrlTrustService.isExtensionUrlTrusted(extensionId, options.originalUrl) : false)
|| this.didUserTrustExtension(ExtensionIdentifier.toKey(extensionId));
if (!trusted) {
let uriString = uri.toString(false);