Skip to content

Commit 05eb806

Browse files
committed
remove example call_js_from_zig useless code
1 parent 9f52c70 commit 05eb806

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

examples/call_js_from_zig/main.zig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ pub fn main() !void {
2525
fn my_function_count(e: webui.Event) void {
2626
// This function gets called every time the user clicks on "my_function_count"
2727

28-
var new_e = e;
29-
3028
// Create a buffer to hold the response
3129
var response = std.mem.zeroes([64]u8);
3230

33-
var win = new_e.getWindow();
31+
const win = e.getWindow();
3432

3533
// Run JavaScript
3634
if (!win.script("return GetCount();", 0, &response)) {

0 commit comments

Comments
 (0)