mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 12:44:19 +01:00
pkg/client-sdk: expose IsLocked (#247)
* expose IsLocked * add test for IsLocked
This commit is contained in:
@@ -76,6 +76,12 @@ func InitWrapper() js.Func {
|
||||
})
|
||||
}
|
||||
|
||||
func IsLockedWrapper() js.Func {
|
||||
return js.FuncOf(func(this js.Value, p []js.Value) interface{} {
|
||||
return js.ValueOf(arkSdkClient.IsLocked(context.Background()))
|
||||
})
|
||||
}
|
||||
|
||||
func UnlockWrapper() js.Func {
|
||||
return JSPromise(func(args []js.Value) (interface{}, error) {
|
||||
if len(args) != 1 {
|
||||
|
||||
Reference in New Issue
Block a user