Skip to content

Commit 69520b9

Browse files
committed
refactor: change prefix of js functions
1 parent 5b000c3 commit 69520b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/main.wasm

0 Bytes
Binary file not shown.

cmd/wasm/wasm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ func main() {
1010
defaultConfigFn := js.FuncOf(defaultConfig)
1111
parseFn := js.FuncOf(parseTML)
1212

13-
js.Global().Set("TML.parse", parseFn)
14-
js.Global().Set("TML.withDefaultConfig", defaultConfigFn)
13+
js.Global().Set("TML_parse", parseFn)
14+
js.Global().Set("TML_withDefaultConfig", defaultConfigFn)
1515
}
1616

1717
func parseTML(_ js.Value, args []js.Value) interface{} {

0 commit comments

Comments
 (0)