mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-12 03:19:45 +02:00
Fix variable name
This commit is contained in:
parent
a460cfcf6c
commit
24b20f308f
@ -22,7 +22,7 @@ import (
|
||||
)
|
||||
|
||||
|
||||
const BlankPageUrl = "about:blank"
|
||||
const BlankPageURL = "about:blank"
|
||||
|
||||
type HTMLDocument struct {
|
||||
sync.Mutex
|
||||
@ -81,7 +81,7 @@ func LoadHTMLDocument(
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if url != BlankPageUrl {
|
||||
if url != BlankPageURL {
|
||||
err = waitForLoadEvent(ctx, client)
|
||||
|
||||
if err != nil {
|
||||
@ -641,7 +641,7 @@ func (doc *HTMLDocument) WaitForNavigation(timeout values.Int) error {
|
||||
|
||||
func (doc *HTMLDocument) Navigate(url values.String) error {
|
||||
if url == "" {
|
||||
url = BlankPageUrl
|
||||
url = BlankPageURL
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
|
@ -39,7 +39,7 @@ func (drv *Driver) GetDocument(ctx context.Context, url string) (values.HTMLNode
|
||||
defer cancel()
|
||||
|
||||
if url == "" {
|
||||
url = BlankPageUrl
|
||||
url = BlankPageURL
|
||||
}
|
||||
|
||||
// Create a new target belonging to the browser context, similar
|
||||
|
Loading…
Reference in New Issue
Block a user