Visual diff: check the rootSelector
exists before making the EmbedAPI request
#521
Labels
Improvement
Minor improvement to code
We perform visual diff over the
rootSelector
(default or defined by the user) at;addons/src/docdiff.js
Lines 169 to 172 in 5b70166
If the
rootSelector
is not found in the current page, visual diff won't work. We can take advantage of this and do not perform the EmbedAPI request if we already know it's not gonna work 😄We will need to check this at
addons/src/docdiff.js
Lines 142 to 147 in 5b70166
The text was updated successfully, but these errors were encountered: