Skip to content

Commit

Permalink
fix: support capacitor protocol (fix #1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jun 19, 2024
1 parent a25fd34 commit f4a92e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vike/utils/parseUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ const PROTOCOLS = [
// For [Tauri](https://tauri.app/)
'tauri://',
// For Electron: https://github.com/vikejs/vike/issues/1557
'file://'
'file://',
// For Capacitor: https://github.com/vikejs/vike/issues/1706
'capacitor://'
]

function isParsable(url: string): boolean {
Expand Down

0 comments on commit f4a92e0

Please sign in to comment.