mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 18:19:36 +08:00
Merge pull request #1002 from ianmjones/fix-cannot-use-uri-as-string-error
Fix error: cannot use uri (type *_Ctype_char) as type string in argument to common.TranslateUriToFile.
This commit is contained in:
commit
7848a028e3
@ -328,7 +328,7 @@ func (f *Frontend) processRequest(request unsafe.Pointer) {
|
|||||||
uri := C.webkit_uri_scheme_request_get_uri(req)
|
uri := C.webkit_uri_scheme_request_get_uri(req)
|
||||||
goURI := C.GoString(uri)
|
goURI := C.GoString(uri)
|
||||||
|
|
||||||
file, match, err := common.TranslateUriToFile(uri, "wails", "")
|
file, match, err := common.TranslateUriToFile(goURI, "wails", "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO Handle errors
|
// TODO Handle errors
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user