Update chromedp to fix console errors (#1521)

This commit is contained in:
peolic
2021-06-23 01:05:58 +03:00
committed by GitHub
parent ae3400a9b1
commit be2fe1de26
526 changed files with 55061 additions and 30300 deletions

22
vendor/github.com/chromedp/sysutil/sysutil_windows.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
// +build windows
package sysutil
import (
"syscall"
"time"
)
var (
kernel32DLL = syscall.MustLoadDLL("kernel32")
procGetTickCount64 = kernel32DLL.MustFindProc("GetTickCount64")
)
func init() {
res, _, err := syscall.Syscall(procGetTickCount64.Addr(), 0, 0, 0, 0)
if err != 0 {
btime = time.Now()
return
}
btime = time.Now().Add(time.Duration(-res) * time.Millisecond)
}