Skip to content

Allow to override the options during the takeShot callback#125

Open
NBZ4live wants to merge 5 commits intobrenden:masterfrom
NBZ4live:takeShot_override
Open

Allow to override the options during the takeShot callback#125
NBZ4live wants to merge 5 commits intobrenden:masterfrom
NBZ4live:takeShot_override

Conversation

@NBZ4live
Copy link

Sometimes it is useful to override some of the options per page basis.

This pull request makes it possible by allowing to override them when calling it as follows:

window.callPhantom({
    event: 'takeShot',
    options: {
        shotSize: {
            width: document.getElementsByTagName('html')[0].offsetWidth,
            height: document.getElementsByTagName('html')[0].offsetHeight
        }
    }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant