mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 20:24:21 +01:00
pkg/client-sdk/wasm: build wasm (#238)
Signed-off-by: tiero <3596602+tiero@users.noreply.github.com>
This commit is contained in:
20
pkg/client-sdk/wasm/main.go
Normal file
20
pkg/client-sdk/wasm/main.go
Normal file
@@ -0,0 +1,20 @@
|
||||
//go:build js && wasm
|
||||
// +build js,wasm
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/ark-network/ark/pkg/client-sdk/wasm/browser"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c := make(chan struct{}, 0)
|
||||
println("ARK SDK WebAssembly module initialized")
|
||||
browser.InitWrapper()
|
||||
<-c
|
||||
}
|
||||
|
||||
func init() {
|
||||
// You can add any additional initialization here if needed
|
||||
// This runs before the main function
|
||||
}
|
||||
Reference in New Issue
Block a user