Skip to content

Commit

Permalink
Update http server example
Browse files Browse the repository at this point in the history
  • Loading branch information
r0x0r committed Jan 7, 2025
1 parent 9a81db3 commit 5a2e591
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import webview


if __name__ == '__main__':
webview.create_window('My first HTML5 application', 'assets/index.html')
# HTTP server is started automatically for local relative paths
webview.create_window('My first HTML5 application', 'assets/index.html')

# Server certificate is self signed so we need to ignore SSL errors
webview.settings['IGNORE_SSL_ERRORS'] = True
webview.start(ssl=True)

0 comments on commit 5a2e591

Please sign in to comment.