diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-03-04 08:25:53 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-03-04 08:25:53 +0300 |
| commit | 58ccd63f4a76a8ee6ee44d30347b9a6b12833ebf (patch) | |
| tree | 75156f8f08f09d590b295c72b027c64eaff38ecd /tools_playwright.go | |
| parent | 3611d7eb592eabc5bd6a074a16394d05c4315bfa (diff) | |
Fix: avoid raw terminal after ctrl+c exit
Diffstat (limited to 'tools_playwright.go')
| -rw-r--r-- | tools_playwright.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools_playwright.go b/tools_playwright.go index 7920230..3555469 100644 --- a/tools_playwright.go +++ b/tools_playwright.go @@ -101,6 +101,14 @@ var ( page playwright.Page ) +func pwShutDown() error { + if pw == nil { + return nil + } + pwStop(nil) + return pw.Stop() +} + func installPW() error { err := playwright.Install(&playwright.RunOptions{Verbose: false}) if err != nil { |
