Skip to content

Commit 4d82367

Browse files
committed
fix: MN-4876 Custom Debugger - Invalid webPath - Cannot access camera photo
1 parent bc4b8eb commit 4d82367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/capacitor-welcome.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ window.customElements.define(
103103
return;
104104
}
105105

106-
image.src = photo.webPath;
106+
image.src = photo.webPath.replace(window.location.href, ''); // Convert URL to relative path for Monaca debugger
107107
} catch (e) {
108108
console.warn('User cancelled', e);
109109
}

0 commit comments

Comments
 (0)