fix(inspector): route file locations through URL semantics

This commit is contained in:
morluto committed 2026-10-26 16:02:14 +08:00
1 parent 1a1121c61f
commit c994870f6b
2 files changed
+132 -1

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ export const authorizeRuntimeLocation = async (
asarHeaderAdmission: AsarHeaderAdmission = DEFAULT_ASAR_HEADER_ADMISSION,
): Promise<RuntimeLocationDecision> => {
throwIfRuntimeObservationCancelled(signal, operation);
if (value.startsWith("file:")) {
if (URL.parse(value)?.protocol === "file:") {
const filePath = await authorizedElectronFile(
value,
signal,