Skip to content

Commit

Permalink
Clarified web_start URL resolution ("bundle resource" directory dep…
Browse files Browse the repository at this point in the history
…ends on package format)
  • Loading branch information
geraintluff committed Nov 21, 2024
1 parent 926d15e commit c006cd4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/clap/ext/draft/web.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ extern "C" {

typedef struct clap_plugin_web {
// Returns the URL for the webview's initial navigation, as a null-terminated UTF-8 string.
// If this URL is relative, it is resolved relative to the plugin (bundle) directory, and
// cannot be outside it. The host may use any protocol to serve this content, and the page
// must not assume that the root of the domain is the root of the bundle. The URL may also be
// If this URL is relative, it is resolved relative to the plugin (bundle) resource directory.
// The host may assume that no resources outside of that directory are used, and may use any
// protocol to provide this content, following HTTP-like relative URL resolution. The page must
// not assume that the root path of the domain is the root of the bundle. The URL may also be
// absolute, including a `file://` URL.
// Returns true on success.
// [main-thread]
Expand Down

0 comments on commit c006cd4

Please sign in to comment.