mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 21:25:16 +03:00
33ee7b247d
* Go 1.13 related fixes for js/wasm * fix windows docker deployment issue * new 3rdparty/UGlobalHotkey example * fix webengine module on arch linux * support for the prebuilt Qt wasm builds * make use of -trimpath if available * bump Go version in docker images to 1.12.9
21 lines
381 B
Go
21 lines
381 B
Go
// +build js,wasm
|
|
|
|
package qt
|
|
|
|
import (
|
|
"syscall/js"
|
|
"unsafe"
|
|
)
|
|
|
|
func init() {
|
|
Module.Set("_callbackReleaseTypedArray", js.FuncOf(func(_ js.Value, args []js.Value) interface{} {
|
|
ReleaseTypedArray(unsafe.Pointer(uintptr(args[0].Int())))
|
|
return nil
|
|
}))
|
|
}
|
|
|
|
var Global = js.Global()
|
|
var Module = Global.Call("eval", "Module")
|
|
|
|
//TODO: func MakeWrapper(i interface{}) *js.Value
|