1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-14 03:20:20 +02:00

Fix variable name

This commit is contained in:
David Landry 2018-10-05 20:42:23 -04:00
parent a460cfcf6c
commit 24b20f308f
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ import (
) )
const BlankPageUrl = "about:blank" const BlankPageURL = "about:blank"
type HTMLDocument struct { type HTMLDocument struct {
sync.Mutex sync.Mutex
@ -81,7 +81,7 @@ func LoadHTMLDocument(
return nil, err return nil, err
} }
if url != BlankPageUrl { if url != BlankPageURL {
err = waitForLoadEvent(ctx, client) err = waitForLoadEvent(ctx, client)
if err != nil { if err != nil {
@ -641,7 +641,7 @@ func (doc *HTMLDocument) WaitForNavigation(timeout values.Int) error {
func (doc *HTMLDocument) Navigate(url values.String) error { func (doc *HTMLDocument) Navigate(url values.String) error {
if url == "" { if url == "" {
url = BlankPageUrl url = BlankPageURL
} }
ctx := context.Background() ctx := context.Background()

View File

@ -39,7 +39,7 @@ func (drv *Driver) GetDocument(ctx context.Context, url string) (values.HTMLNode
defer cancel() defer cancel()
if url == "" { if url == "" {
url = BlankPageUrl url = BlankPageURL
} }
// Create a new target belonging to the browser context, similar // Create a new target belonging to the browser context, similar