MontFerret/ferret

Panic on "ignore.resources"

ziflex opened this issue · 5 comments

LET page = DOCUMENT("YOUR_URL", {
	driver: "cdp",
	ignore: {
        resources: [
            {
                url: "*",
                type: "image"
            }
        ]
    }
})

Is there any different from using disable.resources ?

LET doc = DOCUMENT("YOUR_URL", {
    driver: "cdp",
    disable: {
        resources: [
            {
                url: "*",
                type: "image"
            }
        ]
    }
})

Hey,
I don't think we have "disable.resources".

Hi @ziflex,
what about this ?

Is that wrong?

Oh that one needs to be updated.

Here is the real code:
https://github.com/MontFerret/ferret/blob/master/pkg/stdlib/html/document.go#L208

thanks. I've opened a PR for this #625