Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

fix: Stop ignoring result for element location/size #922

Merged
merged 2 commits into from
Apr 2, 2019

Conversation

dpgraham
Copy link
Contributor

@dpgraham dpgraham commented Apr 1, 2019

The 'ignoreResult' flag was causing the result to not be sent back to the renderer process. This was done because there's some cases where we don't want the result to be displayed using "notification" but this is a problem for highlighting an element because it wasn't getting the result.
This changes it so that 'ignoreResult' still sends the result back to the renderer but skips the notification if it's 'ignoreResult=true'.

The 'ignoreResult' flag was causing the result to not be sent back to the renderer process. This was done because there's some cases where we don't want the result to be displayed using "notification" but this is a problem for highlighting an element because it wasn't getting the result.
This changes it so that 'ignoreResult' still sends the result back to the renderer but skips the notification if it's 'ignoreResult=true'.
@@ -23,7 +23,7 @@ export function bindClient () {

const truncatedResult = _.truncate(JSON.stringify(res), {length: 2000});

if (!_.isNull(res) && !_.isUndefined(res)) {
if (!_.isNull(res) && !_.isUndefined(res) && !resp.ignoreResult) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

util.hasValue(res) && !resp.ignoreResult

@dpgraham dpgraham merged commit 9d64e69 into master Apr 2, 2019
@dpgraham dpgraham deleted the dpgraham-element-not-highlighting branch April 2, 2019 18:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants