1
0
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:
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 {
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()

View File

@ -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