Skip to content

Commit

Permalink
Fix WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Jul 9, 2024
1 parent 0cf2e62 commit d7d2bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/main_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func deserialize(this js.Value, args []js.Value) any {

go func() {
identity := identity.NewResolver(identity.DefaultLifecycleIdentity)
notebook, err := editor.Deserialize([]byte(source), identity)
notebook, err := editor.Deserialize([]byte(source), editor.Options{IdentityResolver: identity})
if err != nil {
reject.Invoke(toJSError(err))
return
Expand Down Expand Up @@ -81,7 +81,7 @@ func serialize(this js.Value, args []js.Value) any {
reject.Invoke(toJSError(err))
return
}
result, err := editor.Serialize(&notebook, nil)
result, err := editor.Serialize(&notebook, nil, editor.Options{})
if err != nil {
reject.Invoke(toJSError(err))
return
Expand Down

0 comments on commit d7d2bdc

Please sign in to comment.