fix(inspector): route file locations through URL semantics
This commit is contained in:
1 parent
1a1121c61f
commit
c994870f6b
2 files changed
+132
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user