updated code

This commit is contained in:
rayaman 2025-06-22 23:12:02 -04:00
parent e95ab1fb73
commit 47953cf341
2 changed files with 2 additions and 1 deletions

View File

@ -107,6 +107,7 @@ func BinaryHandler(w http.ResponseWriter, req *http.Request) {
func init() { func init() {
path, _ := launcher.New(). path, _ := launcher.New().
Headless(true). Headless(true).
NoSandbox(true).
// Uncomment below to see browser // Uncomment below to see browser
// Set("headless", "false"). // Set("headless", "false").
Launch() Launch()

View File

@ -8,5 +8,5 @@ import (
func main() { func main() {
http.HandleFunc("/report", backend.ReportHandler) http.HandleFunc("/report", backend.ReportHandler)
http.HandleFunc("/", backend.BinaryHandler) http.HandleFunc("/", backend.BinaryHandler)
http.ListenAndServe(":8080", nil) http.ListenAndServe(":80", nil)
} }