From f76bc56d5bb0dbfa3a33094ea3564095f9382223 Mon Sep 17 00:00:00 2001 From: Georges Gomes Date: Tue, 14 May 2024 07:12:37 +0200 Subject: [PATCH] Revert "fix: src starting with / is not local" --- src/utils/resource.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/resource.ts b/src/utils/resource.ts index 3faaa0f..281139e 100644 --- a/src/utils/resource.ts +++ b/src/utils/resource.ts @@ -155,7 +155,6 @@ export class Resource { } export function isLocal(src: string) { - if (src.startsWith('/')) return false; const u = url.parse(src); return !u.host; }