Skip to content

Provide example of loading a local HTML file #19

Description

@nileshtrivedi

One of the main reasons for using webviews in desktop apps is to avoid sending sensitive data over the network. For eg, in our open-source project DevToolbox, we want to embed CyberChef while loading it locally.

When I tried using a file:/// URL in the webview.open(), it did not work (probably because of app sandboxing). No errors were shown, but a blank webview opened with the right size.

image

It would be very useful to see an example of a local HTML file from the app bundle/assets loaded in the webview (with Javascript support).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions