Skip to content

Commit

Permalink
Fix loading urls with a hash
Browse files Browse the repository at this point in the history
  • Loading branch information
r0x0r committed Jan 13, 2025
1 parent 0a69a54 commit d87f4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webview/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def start_server(
app = apps[0]
common_path = '.'
else:
local_urls = [u for u in urls if is_local_url(u)]
local_urls = [u.split('#')[0] for u in urls if is_local_url(u)]
common_path = (
os.path.dirname(os.path.commonpath(local_urls)) if len(local_urls) > 0 else None
)
Expand Down

0 comments on commit d87f4b3

Please sign in to comment.