diff --git a/v2/pkg/assetserver/assetserver.go b/v2/pkg/assetserver/assetserver.go index 625c3f245..3a7b695af 100644 --- a/v2/pkg/assetserver/assetserver.go +++ b/v2/pkg/assetserver/assetserver.go @@ -15,9 +15,10 @@ import ( ) const ( - runtimeJSPath = "/wails/runtime.js" - ipcJSPath = "/wails/ipc.js" - runtimePath = "/wails/runtime" + runtimeJSPath = "/wails/runtime.js" + ipcJSPath = "/wails/ipc.js" + runtimePath = "/wails/runtime" + capabilitiesPath = "/wails/capabilities" ) type RuntimeAssets interface { @@ -47,6 +48,9 @@ type AssetServer struct { // plugin scripts pluginScripts map[string]string + // GetCapabilities returns the capabilities of the runtime + GetCapabilities func() []byte + assetServerWebView } @@ -145,6 +149,13 @@ func (d *AssetServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) { case runtimeJSPath: d.writeBlob(rw, path, d.runtimeJS) + case capabilitiesPath: + var data = []byte("{}") + if d.GetCapabilities != nil { + data = d.GetCapabilities() + } + d.writeBlob(rw, path, data) + case runtimePath: if d.runtimeHandler != nil { d.runtimeHandler.HandleRuntimeCall(rw, req) diff --git a/v3/STATUS.md b/v3/STATUS.md index 4dc83e067..23497b32d 100644 --- a/v3/STATUS.md +++ b/v3/STATUS.md @@ -353,7 +353,7 @@ TODO: | dialogs | Almost | | | | drag-n-drop | NO | | | | events | NO | | | -| frameless | NO | | | +| frameless | Needs resizing | | | | kitchensink | Yes | | | | menu | Yes | | | | plain | Yes | | | diff --git a/v3/examples/frameless/assets/index.html b/v3/examples/frameless/assets/index.html index 89618b751..8b58af63f 100644 --- a/v3/examples/frameless/assets/index.html +++ b/v3/examples/frameless/assets/index.html @@ -23,10 +23,10 @@