Skip to content

Commit

Permalink
test: access window via event field in ServeAFolder example
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Jun 15, 2024
1 parent f6e5880 commit 647d82b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/ServeAFolder/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import SwiftWebUI
let win1 = newWindowId(1)
let win2 = newWindowId(2)

func switchToSecondPage(_: Event) {
try! win1.show("second.html")
func switchToSecondPage(_ e: Event) {
try! e.window.show("second.html")
}

func showSecondWindow(_: Event) {
Expand Down

0 comments on commit 647d82b

Please sign in to comment.